Jump to content

netcracker

Members
  • Posts

    85
  • Joined

  • Last visited

Posts 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. 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

  3. 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...

  4. 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

  5. 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. :)

  6. 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

  7. I have shared my folder and let the other people to browse on it, but it still not work, did i need to config some of the component.
    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.
  8. 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... :)

  9. what setting should i need to do if i want to share this website (asp) to the other??i try to use the ip address instead of my localhost, but it still not work.Can any one help me to solve this problem??
    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.
  10. Hi to everyone!Can anybody help me? I am looking for an ASP function, that gives me the list of names of all files in any folder on the server. Does that function exist?
    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 !
  11. 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.

  12. 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.

  13. I m using windows98, I did all the microsoft windows98 update a week ago.now my PWS is running fine, my html pages are being displayed correctly.but my ASP pages no.When I try to run it, I usually get a dowload confirmation box, I choose open, but then nothing oppear, except the plain text in the .asp fileplease, someone out there help  :)

    you need to define a site... I have no ideea how to do that in PWS :)
  14. 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...

×
×
  • Create New...