www.webdeveloper.com
Results 1 to 2 of 2

Thread: What's wrong with this code?

  1. #1
    Join Date
    Feb 2003
    Posts
    30

    What's wrong with this code?

    strHTML = strHTML & "<form onSubmit="&q& "return false;" & q&">"
    strHTML = strHTML & "<input type=" &q& "button" &q& " value=" &q& "First Page" &q& " onClick=" &q& "self.location.href =" &q& "'products.asp?id=" & catid &q& "Page=1'" &q& "return true;" &q& ">"
    strHTML = strHTML & "<input type=" &q& "button" &q& " value=" &q& "Prev Page" &q& " onClick=" &q& "self.location.href =" &q& "'products.asp?id=" & catid &q& "Page=" & (curPage-1) &q& "return true;" &q& ">"
    strHTML = strHTML & "<input type=" &q& "button" &q& " value=" &q& "Next Page" &q& " onClick=" &q& "self.location.href =" &q& "'products.asp?id=" & catid &q& "Page=" & (curPage+1) &q& "return true;" &q& ">"
    strHTML = strHTML & "<input type=" &q& "button" &q& " value=" &q& "Last Page" &q& " onClick=" &q& "self.location.href =" &q& "'products.asp?id=" & catid &q& "Page=" & numPages & "'" &q& "return true;" &q& ">"
    strHTML = strHTML & "</form>"

    When i click on the buttons(first,last,previous,next) nothing is happening....i want it to go the products.asp page with the catid(category id ) and page number as the parameters.
    thanks for your help

  2. #2
    Join Date
    Feb 2003
    Posts
    30
    Thank you Dave,
    I need to make this html string to sent it to another function. which inturn sent it to the browser. But the code is working fine now.
    I'm kinda learning and developing this web site. I highly appreciate your help.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles