Jump to content

Mixaalser684

Members
  • Content Count

    51
  • Joined

  • Last visited

Community Reputation

0 Neutral

About Mixaalser684

  • Rank
    Newbie
  1. I understand perfectly what You are saying here, and that would be one approach, but You missinterpret what I meant when I said "refresshing an element".Let me expalin a little bit more.If I choose to leave the custom tags on the page, I tought, instead of returning an HTML and updating the element,I could manipulate the custom tag attribute object, which is responsible for filling the custom tag with results (an array list like object), and that change would be propagated in already rendered HTML element.The only problem I ran on here is after I manipulate the object I need to refresh the page in order to se the changesin the rendered HTML tag.Watch the video carefully and You'll see exactly what I mean. So this would be the second approach and my question is, is there a way to see these changes without manuallyrefreshing the page (if reloaded automatically with location.reload but it's not an elegant solution).The best solution would be if there was some function to reload rendered HTML element only and not the entire page?Is there such a thing in JavaScript or jQuery?Thank You.
  2. So the custom tags are off then.If the only way is to return the rendered HTML elements (and not custom tags) then I don't need them at all (in their current form).There was one more mechanism, I thought of, that could involve using the custom tags, but in order to use it successfully I need to figure out how to refresh HTML elements without re-submitting the page.Can someone please write a JavaScript code example?I've tried some searching online but no luck.Thank You.
  3. Of course, here is the video clip. Also, I have tried to create this element in Javascript callback function, but I'm getting DOM error no. 5.I know how to solve my problem (create a function that will hard code HTML elements as string) but I was wondering can this be solved via custom tags (if not then there is no need to use them, and they are really neat if you want to avoid code duplication).If You need some more information I'm at your disposal. Thank You.
  4. I have the need to have custom JSP tags in my web application.My custom tag works well when I run the application.Since I use Ajax (Javascript + Servlet + JSON) i tried to create my custom tag as a DIV element child in my Ajax Callback function.I tried using innetHTML method and createElement methods, and none of them works.So, I was wondering is this possible to do (or not) and how if it is?Thank You.
  5. Geeze, talking about case-sensitivity. This raises another question, how do I enable syntax checking for Javascript, in NetBeans IDE, to avoid stupid mistakes like this one in the future? Thanks a million. :)Cheers!
  6. Currently I'm learning Ajax with Java.The innerHTML method works when I'm retrieving simple string data from the servlet, and when I need to update only one HTML element.Since I have the need to update more HTML elements it occurred to me that I can use JSON object with several properties (HTML tag data for each element needed updating).After trying that I've noticed that innerHTML method doesn't work, when I try to process the retrieved data in the Callback function.My question is, why is this happening?Did someone had a similar problem when using JSON with Javascript.Just for the record, when I use innerText method I successfully update the HTML elements with JSON properties data, only they update as text and that's what I don't need. (See the video) Thank You.
  7. That was exactly what I did to try to solve al my problems. I've solved this one. Thanx
  8. I've put Javascript statements in the Forms OnChange event to trigger them when this event occurs. I wan't to know can I trigger VB Script Sub Procedures the same way with the Forms onChange event? For example I wan't to Filter a Recordset based on dropdowns list selection without submitting the form. Can this be done, without sending the request to the server?Thanx
  9. I have a database with three columns: intKorisnikID (Autonumber) - UserIDtxtIme (txt) - User NametxtPrezime (txt) - User Surname On the edit.asp page I'm passing the user ID via Request.QueryString("id"), and in the form on that page I want to b able to edit the name or surname of the selected user (from the index.asp page)Here is the edit.asp code: <%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>Admin - Edit</title></head><body><p><a href="index.asp">View Users</a></p><%Dim DBSet DB = Server.CreateObject("ADODB.Connection") DB.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="&Server.MapPath("db/dbKorisnici.mdb")&";"Dim RSSet RS = Server.CreateObject("ADODB.Recordset")Dim SQLSQL = "SELECT * FROM tblKorisnici ORDER BY txtPrezime ASC;"RS.Open SQL, DB, 3, 3Dim updateSQLupdateSQL = "UPDATE tblKorisnici SET txtIme = '" & Request.Form("txtIme") & "' WHERE intKorisnikID = '" & Request.Form("txtID") & "' ;"DB.Execute updateSQL%><form action="edit.asp" method="post"><input name="txtID" type="hidden" value="<%= Request.QueryString("id") %>" /><input name="txtIme" type="text" value="<%=(RS.Fields.Item("txtIme").Value)%> "/><input name="txtPrezime" type="text" value="<%=(RS.Fields.Item("txtPrezime").Value)%>" /><input name="Submit" type="submit" value="Edit" /></form><%RS.CloseSet RS = NothingDB.CloseSet DB = Nothing%></body></html> On Line 29. which is DB.Execute updateSQL I'm getting Data type mismatch in criteria expression. I know it has something to do with the WHERE intKorisnikID = '" & Request.Form("txtID") & "' SQL clause, but I don't know how to make this work.If I put a number let say 14 instead of '" & Request.Form("txtID") & "' everything is working as it should the only problem is that I'm updating the same record (14th )each time.What do I need to put in order to be able to update the selected user (passed ID from the Request.QueryString("id")?Thanx.
  10. Mixaalser684

    ASP Hosts?

    I'm using free ASP and MS Access hosting on www.titanichost.com, but I don't know if it supports all that you want. Probably not because its free. There is no trial period on this host, not tha I know of.
  11. tblCardsintCardID (P.K. - Long Integer - Autonumber) txtCardName (Text 255)intQuantity (Long Integer)bitFoil (Yes/No)dblPrice (Double)memComment (Memo)intEditionID (Long Integer - Duplicates OK)intColorID (Long Integer - Duplicates OK)intConditionID (Long Integer - Duplicates OK)
  12. I'm not quite sure I understood the question.
  13. Look at this page Example.Now look at the part: Card instances 1 to 10 of 1853 (total quantity not included) You see the number 1853? That is not the total amount of cards I have in database. The total amout is around 3000. Now the database counts only how many times some card with the specific name appears in database but it doesn't count how much in quantity I have of each card that appears. The quantity number is represented with the "#" symbol. Now do I add the quantity for each specific card?
  14. Yes it works, thanx Justsomeguy Now I'll go and reupdate my dynamic application and If I have new trouble I'll call in. I hope I won't.
×
×
  • Create New...