How t use ie-execute-javascript with name value pairs in script

View: New views
3 Messages — Rating Filter:   Alert me  

How t use ie-execute-javascript with name value pairs in script

by andrew93117 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

When I try to execute a javascript call to my menu item I get Error Parsing Script "The reference to entity "Action" must end with the ';' delimiter.

As you can see I have several name=value pairs in the url I need to get to javascript.

      <ie-execute-javascript
       functionId="Send to admin about"
       script="doMenuClick('http://aforeman-lt/v70/iData.asp?WCI=begin&Action=D&iType=10906')" />
It seems that it is only parsing the first name value pair.
Does anyone have an example showing how to get around this?
Thanks in advance.
Andrew

Re: How t use ie-execute-javascript with & in script

by andrew93117 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I found this afternoon that replacing '&' with '& amp;' <-- without the space between & and amp; mitigated my error.
Wonder if this is correct behavior....

andrew93117 wrote:
When I try to execute a javascript call to my menu item I get Error Parsing Script "The reference to entity "Action" must end with the ';' delimiter.

As you can see I have several name=value pairs in the url I need to get to javascript.

      <ie-execute-javascript
       functionId="Send to admin about"
       script="doMenuClick('http://aforeman-lt/v70/iData.asp?WCI=begin&Action=D&iType=10906')" />
It seems that it is only parsing the first name value pair.
Does anyone have an example showing how to get around this?
Thanks in advance.
Andrew

Parent Message unknown Re: How t use ie-execute-javascript with name value pairs in script

by jameleon-users mailing list :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, this is correct behavior. Well it's an XML thing. For example, if you decided to define the script variable outside of the script, then you wouldn't need to escape & with &

-Christian



----- Original Message ----
From: "jameleon-users@..." <jameleon-users@...>
To: jameleon-users@...
Sent: Monday, August 25, 2008 5:35:21 PM
Subject: Re: [Jameleon-users] How t use ie-execute-javascript with name value pairs in script


I found this afternoon that replacing '&' with '&' mitigated my error.
Wonder if this is correct behavior....


andrew93117 wrote:

>
> When I try to execute a javascript call to my menu item I get Error
> Parsing Script "The reference to entity "Action" must end with the ';'
> delimiter.
>
> As you can see I have several name=value pairs in the url I need to get to
> javascript.
>
>       <ie-execute-javascript
>        functionId="Send to admin about"
>      
> script="doMenuClick('http://aforeman-lt/v70/iData.asp?WCI=begin&Action=D&iType=10906')"
> />
> It seems that it is only parsing the first name value pair.
> Does anyone have an example showing how to get around this?
> Thanks in advance.
>

--
View this message in context: http://www.nabble.com/How-t-use-ie-execute-javascript-with-name-value-pairs-in-script-tp19150523p19153545.html
Sent from the jameleon-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jameleon-users mailing list
Jameleon-users@...
https://lists.sourceforge.net/lists/listinfo/jameleon-users



     

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Jameleon-users mailing list
Jameleon-users@...
https://lists.sourceforge.net/lists/listinfo/jameleon-users