Re: Grabbing results from a webpageã By: The Lizard Master to echicken on Thu Aug 20 2020 09:18:14ãã TL> This is probably my javascript ignorance, but can I ask how you pass a javascript variable to a urlã TL> variable? I tried setting it to a complete string that displays correctly, but I get a 400 errorã TL> response from the server. ããYou can pass in a string, whether it be a variable or a string literal, eg:ãã req.Get('
https://some.web.site/'); // literalã var url = '
https://some.web.site/');ã req.Get(url); // variableãã TL> var res = req.Get(fullFormedURLThatWorksCopyPaste);ããDepends on what fullFormedURLThatWorksCopyPaste is.ãã TL> I also tried this -ãã TL> var res = req.Get('
http:///some.web.site/page?variable1=' + variable1);ããAs long as variable1 is a string (or a type that will become a string as needed, but that's a whole other topic). And remove that extra slash near the beginning.ãã req.Get('
http://some.web.site/page?variable1=' + 'some_string');ã var param = 'some_string';ã req.Get('
http://some.web.site/page?variable1=' + param);ã var url = '
http://some.web.site/page?variable1=';ã req.Get(url + param);ããand so on.ãã---ãechickenãelectronic chicken bbs - bbs.electronicchicken.comã þ Synchronet þ electronic chicken bbs - bbs.electronicchicken.comã