Sasa Posted February 11, 2008 Report Share Posted February 11, 2008 (edited) ko pilda šis kods? onSubmit="return onSubmitForm();" cik saprotu tad itkā tas pie submit pogas nospiešanas atgriežās pie tās pašas formas ko iepriekš aizpildīja! Tā kaut kā sanāk? Kā vajadzētu rakstīt ja gribētu pie submit pogas pievienot datus un tad izpildīt history.back() ? labojums pie submit pogas vajadzētu izpildīt aiziešanu uz index.htm! Edited February 11, 2008 by Sasa Link to comment Share on other sites More sharing options...
andrisp Posted February 11, 2008 Report Share Posted February 11, 2008 tas nozīme, ka ja onSubmitForm atgriezīs true, tad forma nosubmitēsies, ja false, tad ne. Link to comment Share on other sites More sharing options...
Sasa Posted February 11, 2008 Author Report Share Posted February 11, 2008 labi! var kaut kā pielikt pie submita tā lai dati pievienojas un mani pārsūta uz index lapu! Ja es kaut kā nosubmitēju tad man izpildās šī funkcija, kura izvada augšupielādēto failu nosaukumus function SaveFiles Dim Upload, fileName, fileSize, ks, i, fileKey Set Upload = New FreeASPUpload Upload.Save(uploadsDirVar) ' If something fails inside the script, but the exception is handled If Err.Number<>0 then Exit function SaveFiles = "" ks = Upload.UploadedFiles.keys if (UBound(ks) <> -1) then SaveFiles = "<B>Files uploaded:</B><br> " for each fileKey in Upload.UploadedFiles.keys SaveFiles = SaveFiles & uploadsURL &"/" & Upload.UploadedFiles(fileKey).FileName & " (" & Upload.UploadedFiles(fileKey).Length & "B) " & "<br>" next else SaveFiles = "The file name specified in the upload form does not correspond to a valid file in the system." end if end function kā lai sataisa, lai pēc sekundes vai pat uzreiz mani pārsūta un index lapu? Link to comment Share on other sites More sharing options...
bubu Posted February 11, 2008 Report Share Posted February 11, 2008 Paklau, tev vēl neapnika miksēt Javaskriptu kopā ar VBScriptu. Visu taču, ko var vienā izdarīt, var arī otrā. Kāpēc tu pusi raksti vienā, pusi otrā? Visu nav vienkāršāk vienā rakstīt? Par tavu redirektu - skaties window.location atribūtu. Link to comment Share on other sites More sharing options...
Sasa Posted February 11, 2008 Author Report Share Posted February 11, 2008 atvainojos ka nepiemeinēju, bet šis jau ir ASP. Link to comment Share on other sites More sharing options...
Paulinjsh Posted February 11, 2008 Report Share Posted February 11, 2008 te ir php forums nevis m$ asp Link to comment Share on other sites More sharing options...
Sasa Posted February 11, 2008 Author Report Share Posted February 11, 2008 labi nebūs jautājumumi par asp vairs! Link to comment Share on other sites More sharing options...
v3rb0 Posted February 11, 2008 Report Share Posted February 11, 2008 pusminūte gūglē un reku atbilde - Response.Redirect() [http://support.microsoft.com/kb/312063] Link to comment Share on other sites More sharing options...
Recommended Posts