Jump to content

netcracker

Members
  • Posts

    85
  • Joined

  • Last visited

Everything posted by netcracker

  1. how can i call a javascript (or the value returned by a js) inside an already opened and in execution javascript?more to the point, something like this: onClick="window.open('sendlink.html?link=[+document.URL]', '','')" it should be quite easy, i presume, but my knowledge in js has its flaws... :)i think there should be some " or ' or { or .... please helpthx
  2. you may use a browser that denies coockies or has some filters active...IE doesn't have this, but other browsers, like Opera, Maxthon..., do!
  3. ofcourse...!!i knew that !! thx a lot scott !!
  4. does anyone know how to write only a part of a filed ? say... the first 10 characters!let's say i select a record from a db and i want to write the begining of a fieldthis would write the whole contents of that field.. response.write(rs.fields.item("field")) ..but what if i want to write only the first 10 letters ??i think it shouyld be something like this: response.write(rs.fields.item("descriere_scurta").Read(5)) ...but it's not.please help !thx
  5. netcracker

    test.asp

    response.Write Request.ServerVariables ("Path_Translated")this gives you the local path of the current file
  6. i think you should compare 2 dates, and u should store the date when u modified a page somewhere.something like:if FormatDateTime(filObject.DateLastModified, VbShortDate) between FormatDateTime(date_last_modified, VbShortDate) and FormatDateTime(now(), VbShortDate)then alert user ...but why complicate things when you could have a popup to alert the user, that you could manually modify whenever u make a change...
  7. netcracker

    logon_user

    ...but if the user is behind a firewall it won't show anything
  8. not sure i understand just what you are trying to do...you can store the passwords in a table (db) and in check to see if the user typed in that password........
  9. u must do a "while" script ... while not rs.eof then ...send mail...move.nextwend
  10. netcracker

    help required

    you will need to define 2 connections:if condition1 Dim connection1 set connection1 = Server.CreateObject("ADODB.connection") connection1.ConnectionString = "Driver={SQL Server}; Server=e-govrural;Database=sarthi;Uid=ts_sarthi;Pwd=ts_sarthi;" connection1.Open response.write("do your thing #1")else Dim connection2 set connection2 = Server.CreateObject("ADODB.connection") connection2.ConnectionString = "Driver={SQL Server}; Server=e-govrural;Database=sarthi;Uid=ts_sarthi;Pwd=ts_sarthi;" connection2.Open response.write("do your thing #1")end if
  11. I don't think u can connect to 2 databases that are on different machines and not on the same network (LAN).Not with MS Access, anyway...You cannot open a connection across the Internet.
  12. something like this: If IsEmpty(request.form("field_name")) or request.form("field_name")="" then response.write "<div align='center'field cannot be blank !!<br/>" response.write "<input type='button' onClick='window.history.back()'>" response.write "</div>" response.end Else local_var = request.Form("field_name")End If
  13. rs.open "select * from domenii",conn<select><%While not rs.eof response.write ("<option>"& rs.fields.item("name_of_the_field") &"</option>") rs.MoveNextwend%></select>it's no biggie, is it ?!
  14. however, i think it's all the same if you use that statement or not.
  15. <script LANGUAGE="Javascript">history.go(1);</SCRIPT>this will disable both back as well as forward
  16. You might find these xtremely usefull:http://w3schools.invisionzone.com/index.ph...604entry10604orhttp://w3schools.invisionzone.com/index.ph...438entry10469try using the search facility on the forum, the subject has already been discussed...
  17. DO NOT SHARE your folder !!! this is a hazardous action an it makes you vulnerable to outside attaks !!Define a web site in IIS and allow all or some IP's to acces it !! That should be enough!read some tutorial on installing IIS and defining a website on your localhost.
  18. if u can find a way to insert/update the info in your DB and at the same time upload your files...I needed to upload accordig to an "id" field so first i needed to do the data insertion/update an d afterwards do the upload by taking the ID of the data previusly inserted/updated.hope i've been coherent...
  19. Once the website is installed on your IIS, anyone can access it by typinghttp://yourIP/name_of_site/ in their browser...is the "other" on your LAN or connecting from the Internet?if it is from the LAN then "yourIP" must be the LAN IPelse "yourIP" is the IP you connect to the Internet with.
  20. First of all you will not be able to see anything unles directory browsing is enabled. If it is so, why bodder whith a script when IE or WinExplorer can do the job.But I have the feeling that you are trying to do some hacking, and steal somthing from somewhere...You could have used google instead of posting here, it might have been faster !
  21. I myself chose an "inovative and original" 2 page solution. After the data is inserted redirect the user to the upload form or present him with the upload form just after the success message for the insertion of data.
  22. netcracker

    ASP adRotator

    Give a sample of the code to check it out an maybe then someone might present you with solution...Howerver, it should by any means rotate a swf banner also.
  23. netcracker

    Download box and ASP

    you need to define a site... I have no ideea how to do that in PWS
  24. netcracker

    redirect

    or instead of response.redirect(bla) you could use response.end and then, anything that's after that doesn't get sent to the client...
  25. netcracker

    user privilege.

    u need to make an admin panel... :)make the users login before they can acces any of that page by inserting in the begining, before the rest of the code: if not session("auth_granted")="true" then response.Redirect "login.asp" response.end reed these:http://w3schools.invisionzone.com/index.php?showtopic=11http://www.w3schools.com/asp/default.asp
×
×
  • Create New...