Today's Posts Follow Us On Twitter! TFL Members on Twitter  
Forum search: Advanced Search  
Navigation
Marketplace
  Members Login:
Lost password?
  Forum Statistics:
Forum Members: 24,254
Total Threads: 80,792
Total Posts: 566,471
There are 997 users currently browsing (tf).
 
  Our Partners:
 
  TalkFreelance     Design and Development     Programming     Javascript :

Illegal Character

Thread title: Illegal Character
Closed Thread    
    Thread tools Search this thread Display Modes  
03-03-2008, 01:14 PM
#1
Liam is offline Liam
Liam's Avatar
Status: Member
Join date: Dec 2007
Location: Liverpool, UK
Expertise:
Software:
 
Posts: 287
iTrader: 0 / 0%
 

Liam is on a distinguished road

Send a message via MSN to Liam

  Old  Illegal Character

Hello, quick question.
I don't know a lot of javascript, so help me out.
Firebug is saying on line 4 there is an illegal character, but I just can't see it.

// JavaScript Document
function clickit(cn,clink) {
if(document.images) {
(new Image()).src=\"clickstats.php?num=\"+cn+\"&url=\"+ clink+\"&val=\".urlencode($js_string).\";
}
return true;
}

if anyone knows whats up with this, let me know, thanks

03-06-2008, 11:29 AM
#2
Liam is offline Liam
Liam's Avatar
Status: Member
Join date: Dec 2007
Location: Liverpool, UK
Expertise:
Software:
 
Posts: 287
iTrader: 0 / 0%
 

Liam is on a distinguished road

Send a message via MSN to Liam

  Old

no one knows? c'mon.

03-07-2008, 05:54 PM
#3
hadriel is offline hadriel
hadriel's Avatar
Status: I'm new around here
Join date: Mar 2008
Location:
Expertise:
Software:
 
Posts: 22
iTrader: 0 / 0%
 

hadriel is on a distinguished road

  Old

Why you have escaped the quotes?

Anyway, it doesn't trow error for me that way

Code:
<script>
// JavaScript Document
function clickit(cn,clink) {
if(document.images) {
(new Image()).src="clickstats.php?num="+cn+"&url="+ clink+"&val="+urlencode($js_string);
}
return true;
}

</script>

03-13-2008, 01:00 PM
#4
Liam is offline Liam
Liam's Avatar
Status: Member
Join date: Dec 2007
Location: Liverpool, UK
Expertise:
Software:
 
Posts: 287
iTrader: 0 / 0%
 

Liam is on a distinguished road

Send a message via MSN to Liam

  Old

Cheers, one of our programmers put in a script called php_dig which included this little script.
I'm not a javascript guy so didn't know the escapes would cause any errors.

Thanks again

03-16-2008, 12:39 AM
#5
BrandonKeys is offline BrandonKeys
Status: Member
Join date: Mar 2008
Location:
Expertise:
Software:
 
Posts: 121
iTrader: 2 / 100%
 

BrandonKeys is on a distinguished road

  Old

Liamm?

03-17-2008, 02:16 PM
#6
Liam is offline Liam
Liam's Avatar
Status: Member
Join date: Dec 2007
Location: Liverpool, UK
Expertise:
Software:
 
Posts: 287
iTrader: 0 / 0%
 

Liam is on a distinguished road

Send a message via MSN to Liam

  Old

yess?

Closed Thread    


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

  Posting Rules  
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump:
 
  Contains New Posts Forum Contains New Posts   Contains No New Posts Forum Contains No New Posts   A Closed Forum Forum is Closed