Post Reply 
Firefox Noscript and Sidki's JS Insertion
Oct. 09, 2008, 12:32 PM
Post: #6
RE: Firefox Noscript and Sidki's JS Insertion
Kye-U Wrote:I've been having some trouble getting the variables and attempting to convert them into a ?var1=val1&var2=val2&var3=val3... format. I have to find out where they're being set, and somehow change the format.

Maybe you could pass the variables to the script, more or less as is, via a meta tag thats injected before prox.js is.
The content attribute of the meta tag could be used to pass the jsVars.

The prox.js scripts would have to be modified to read the content attribute of the meta tag.
Or, this could be done by injecting a new external js file that is called before the prox.js is injected.
This script would create the cfg object and eliminate the need for modifying the existing scripts.

Something like this maybe:

Inject the meta tag and the JsCfg script before injecting prox.js script
Code:
<meta name="prxJsVars" content="foo,bar,etc,$GET(jsVar)" />\r\n
<script type="text/javascript" src="http://local.ptron/sidkiJsCfg.js"></script>\r\n

Example js code for sidkiJsCfg.js
Code:
function createPrxJsCfgObj(){
  
  // Read the meta tags content attribute string
  var prxJsCfg=document.getElementsByName("prxJsVars")[0].content;
  
  // create the proxO object using the passed values
  
}

createPrxJsCfgObj();

Just a thought.
z12
Add Thank You Quote this message in a reply
Post Reply 


Messages In This Thread
RE: Firefox Noscript and Sidki's JS Insertion - Guest - Sep. 07, 2008, 11:32 PM
RE: Firefox Noscript and Sidki's JS Insertion - z12 - Oct. 09, 2008 12:32 PM

Forum Jump: