I have a problem:
Login to admin section using admin admin as user and password on website
http://www.collegnoviaggi.com/shop2007/admin2/login.asp
Click on "Nuovo Prodotto" (http://www.collegnoviaggi.com/shop20...m_prodotti.asp)
Put in field "Cartella Immagini" Puntata that is blank the number 111
Click the button "Seleziona imagine dal tuo disco" : a new window is opened
and you can select using SFOGLIA an .jpg image file on your disk, and upload with button CARICA . DO IT.
The windows is closed and filename is filled on name file field name="xfoto1" of anteprima foto piccola
file http://www.collegnoviaggi.com/shop20...m_prodotti.asp
line 317 <input name="xfoto1" type="text" size="30" value="<%=xfoto1%>" onchange=aggiorna()>
Click on ANTEPRIMA button and show image on form.
This is all ok:
Now the problem n.1:
I like pass parameter of, folder to asp of new window that is D:\www9\testjs\shop2007\admin2\caricamento\foto3.a sp
Qdir = Request.QueryString("dir")
Qdir = "/public/Image/" & Qdir & "/"
My problem is on line 50 oUpload.SetPath "/public/Image/111/"
I like substitute the fix path (folder 111) with a programmable path bur any tentative fails.
Qdir = "111"
oUpload.SetPath "/public/Image/" & Qdir & "/" // fails
oUpload.SetPath (Qdir) // fails Server.MapPath() error 'ASP 0174 : 80004005' Invalid Path Character(s) /dina/admin/caricamento/upload.asp, line 763 An invalid '/' or '\' was found in the Path parameter for the MapPath method.
oUpload.SetPath 'Qdir' // fails Wrong number of arguments or invalid property assignment: 'SetPath' /dina/admin/caricamento/foto3.asp, line 49
What is correct sintax?
---------------------------------------------------------------
Now the problem n.2:
I like pass parameter of caller image to update with preview
in same file D:\www9\testjs\shop2007\admin2\caricamento\foto3.a sp
Caller = Request.QueryString("caller")
My problem is on line 79-80
79 Response.write("window.opener.document.f.xfoto1.va lue='" & StrImgName & "'; window.close();" & vbNewline)
80 'Response.write("window.opener.document.f.' & Caller & '.value='" & StrImgName & "'; window.close();" & vbNewline)
If I comment 79 and enable 80, i have a new error.
What is correct sintax?
---------------------------------------------------------------
If you like, download all project to work in local IIS on http://www.collegnoviaggi.com/public/testjs.rar

Rispondi quotando