| |
| |
| |
|
Page: 1 2 3 4
Comments:
<Djanov> hello again <Djanov> i need help again <Djanov> is it possible to add a title using window.open() ? <fatbrain> no <Djanov> how can i add a title then ? <fatbrain> Djanov: You set it in the opening pages <title> element. <Djanov> how can i p*** php variable in JS ? <exacube> <?php $myphpvar = 16; echo "<script>var myvar = {$myphpvar};</script>"; ?> <exacube> <script> alert(myvar); </script> <Djanov> is this good ? : <Djanov> var imagepath="<?php echo('$imagepath'); ?>" <Djanov> exacube ? <Djanov> openPictureWindow('imagepath', 800, 600, 'window title here'); <Djanov> but it doesn't work <exacube> yeah, that's fine <exacube> no its not fine <NeoFu7ure> what ya think of this <NeoFu7ure> http://atsearch.autotrader.co.uk/WWW/CARS_popup.asp?modelexact=1&lid=search_used_cars_full&make=TOYOTA&model=SUPRA&min_pr=5000&max_pr=7000&mileage=&agerange=&postcode=b11aa&miles=1500&max_records=200&source=0&photo=1&sort=3&ukcarsearch_full=SEARCH&start=6&distance=161&adcategory=CARS&channel=CARS&id=200609226583193 <exacube> i think it's a very long URL <exacube> var imagepath="<?php echo($imagepath); ?>" <Djanov> i prefer Lada cars :P <exacube> openPictureWindow(imagepath, 800, 600, 'window title here'); <NeoFu7ure> Djanov you have to specify the title in the document your opening <NeoFu7ure> vardhan <NeoFu7ure> the car not the urn you twat <exacube> it looks good <NeoFu7ure> URL <Djanov> nice car ;) <exacube> looks new <NeoFu7ure> im thinking of selling my roadster and buying one <Djanov> well it doesn't work <Djanov> i have a problem with variable <Djanov> image link is : http://localhost/<?php <Djanov> the php variable is not p***ed into java variable <Djanov> problem is here var imagepath="<?php echo($imagepath); ?>" <Djanov> please help me <NeoFu7ure> Djanov ff show me the script online already <Djanov> i'm on local :( <Djanov> if you want i can show you the source JS <Djanov> in JS i i want to use 2 variables i should do this ? : ('+variable1+' '+variable2+') <Djanov> please ? <Djanov> yuhu ? <NeoFu7ure> you need to put online to see <Djanov> if i can put it online can you help me ? <NeoFu7ure> i can try but be quick its late and im tired <Djanov> ok please wait <Djanov> neo can you try this: 82.121.28.185 <NeoFu7ure> dont work <NeoFu7ure> We can't find "82.121.28.185" <Djanov> damn there is a routeur <Djanov> can you look at my code ? http://pastebin.com/584362 <NeoFu7ure> Djanov i really need to see it online <Djanov> i configuref easy php but routeur won't open it :( <Djanov> my apache server is down <NeoFu7ure> Djanov paste the whole file Not just that snippet <furtive> bleh <Djanov> but this is were the error is <Djanov> i will explain <furtive> if (document.abortion()) alert("bleh"); <NeoFu7ure> bleh <furtive> ;-) <Djanov> if instead of : var imagepath="<?php echo($imagepath); ?>" <Djanov> i put var imagepath="/photos/1.jpg" <Djanov> it works perfectly <Djanov> so there is a problem with p***ing the php variable to JS, no ? <NeoFu7ure> is the document a .php doc <Djanov> yes <NeoFu7ure> show me the whole doc <Djanov> and the part i gave you is called <NeoFu7ure> Djanov ok stop right there <Djanov> with : echo"<script type='text/javascript' src='Java/2.js'></script>"; <NeoFu7ure> PUT THE WHOLE DOC IN PASTEBIN <Djanov> ok <Djanov> http://pastebin.com/584368 <Djanov> that is my main code <Djanov> line 7 correspond to the first link i gave you <NeoFu7ure> so your calling 2.js <NeoFu7ure> and thats the other pastebin **** ? <Djanov> line 84 is using 2.js yes <NeoFu7ure> that needs to be 2.php NOT 2.js <NeoFu7ure> else how can the js parse the php stuff ??? <Djanov> but it's stores in a JS file <NeoFu7ure> rename 2.js to 2.php <Djanov> *stored <Djanov> ok <NeoFu7ure> change line 2 to call 2.php <Djanov> on source and on folder ? <NeoFu7ure> apache cant parse <?php ?> in a .js file <NeoFu7ure> Djanov you have a file called 2.js yes ? <NeoFu7ure> please listen my time is valuable <Djanov> done but it's still the same <Djanov> not reaalyy the same sorry <NeoFu7ure> 2 mins <NeoFu7ure> your french yes ? <Djanov> i don't have my image <Djanov> yes <NeoFu7ure> ok <NeoFu7ure> wait... <Djanov> the image properties gives me : http://localhost/WIDTH=800 <Djanov> instead of :http://localhost/photos/1.jpg <joehn> i am here <NeoFu7ure> Djanov <NeoFu7ure> is french mate <joehn> rehi Neo <NeoFu7ure> can you transpate <NeoFu7ure> translate <joehn> sure <joehn> shoot Djanov <Djanov> cool <NeoFu7ure> aiclaly whats happening is you are trying to make apache run a .js file as a .php file and it cant interpretate the php code <NeoFu7ure> bascially <Djanov> yeah <NeoFu7ure> that joehn <Djanov> when i changed JS to php <NeoFu7ure> joehn is a good french friend of mine <Djanov> my error changed <joehn> ;-) <Djanov> so now apache can interprate the php inside the Java ? <NeoFu7ure> yes if the file is .php <Djanov> am i right ? <Djanov> ok <NeoFu7ure> sorry joehn seems he understands lol <Djanov> but i still don't have the value p***ing <joehn> his english is good <Djanov> ^^ <NeoFu7ure> so you have an error in your 2.php now thats not making your image the correcy one <Djanov> no, because if i give manually the name of the variable it works <NeoFu7ure> Djanov put 2.php on pastebin please <Djanov> problem is on: var imagepath="<?php echo($imagepath); ?>" <Djanov> http://pastebin.com/584362 <NeoFu7ure> ok put your 2.php(js) on pastebin <NeoFu7ure> No the whole thing please <NeoFu7ure> if that IS the whole file do this BEFORE it all <Djanov> http://pastebin.com/584378 <NeoFu7ure> <?php $imagepath="/image/myphoto.jpg"; ?> <Djanov> ok i put it manually and i test <Djanov> pls wait <NeoFu7ure> right your trying to parse an $imagepath thats not set mate <Djanov> i put that on line 4 right ? <NeoFu7ure> basically that variable has not been told what to parse our ? <NeoFu7ure> no line 1 <NeoFu7ure> above everything <Djanov> out of the function ? <NeoFu7ure> what image are you exepecting where should $imagepath come from <NeoFu7ure> ok lets go back a few steps <NeoFu7ure> what is sepecifing the image path ? <NeoFu7ure> where is $imagepath set <Djanov> when i put the code on line 1
Return to
#javascript or Go to some related
logs:
#linux #linuxhelp #linuxhelp Taco Bell bucuresti radio getElementByname checked #php #AllNiteCafe #linux horde unable to connect to localhost:106 passwd/lib/Driver/poppassd.php #AllNiteCafe
|
|