GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   How do i write this JavaScript? (https://gfy.com/showthread.php?t=713146)

alex79 03-09-2007 11:26 AM

How do i write this JavaScript?
 
i need to rewrite below JS code without "{" and "}"
PHP Code:

<script type="text/javascript">
var 
aaa = {image:"xxx",width:"400",height:"300" };
bbb.create(aaa"yyy");
</script> 

how i do this?

gornyhuy 03-09-2007 11:38 AM

Try this:
var aaa = unescape('&#37;7B') + 'image:"xxx",width:"400",height:"300" ' + unescape('%7D') ;

alex79 03-09-2007 11:44 AM

Quote:

Originally Posted by gornyhuy (Post 12046663)
Try this:
var aaa = unescape('%7B') + 'image:"xxx",width:"400",height:"300" ' + unescape('%7D') ;

is not working..
i receive this error: Expected ";"

gornyhuy 03-09-2007 12:17 PM

Well, if it requires a ; inside the string it would look like this:
var aaa = unescape('%7B') + 'image:"xxx",width:"400",height:"300" ' + unescape('%7D') + ';' ;

gornyhuy 03-12-2007 05:14 PM

This is a good example of why coders don't usually help people in threads when they ask for it. :(


All times are GMT -7. The time now is 09:05 PM.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123