1

Topic: passing querystring to image.htm (asp)

hey, great product !

Im stuck. when modifying an inserted image, I need to pass the image URL (src) as a querystring to image.htm either as that or as some other kind of variable that can be used in the server side vbscript that i have put in that page.

im trying to work out the jscript to see whether i can pinpoint a function that already does this, so i can just + it on the end of the image.htm location in editor_template.js - template['file'], but its taking me a while.

if anyone has any ideas ?

thanks !

2

Re: passing querystring to image.htm (asp)

Interessting point, but you could do a somewhat ugly workaround for this one. You could take all input data from JS place it in a form with hidden form fields and submit it on load to your serverside page. Then you would only need to modify the image.htm file.

Best regards,
Spocke - Main developer of TinyMCE

3

Re: passing querystring to image.htm (asp)

unfortunately im still not sure how to properly reference the correct elements in tinymce..

the onload event in image.htm sets all the values in the form elements using a script that references the opening page (using about a million different functions lol  )   which function could i call within scope that would allow me to concatenate the src variable to the image.htm URL.

I dont really care how it gets passed, (as long as its accessible to the server side script in the image.htm page) form field would be ok, even cookies..

please help someone ?

4

Re: passing querystring to image.htm (asp)

The most simple way is just to change all input fields into hidden fields as I suggested before and then just add a document.forms[0].submit(); row before or after the "window.focus();" call in the "init" function of image.htm.

The form inside the image.htm file should have the action pointing to a image.asp or image.php then it will auto post the data as it loads the window.

Best regards,
Spocke - Main developer of TinyMCE

5

Re: passing querystring to image.htm (asp)

but modal dialogs dont support that behaviour, it spawns a new window. ideally i really need to pass the variable with the original page call..