Jump to content

chadmichael

Members
  • Posts

    113
  • Joined

  • Last visited

Everything posted by chadmichael

  1. Thanks guys. I'll let you know how it goes.
  2. Can some one give me a definition of multi-part request?Thanks.
  3. I've got the filmstrip of thumbnails scrolling perfectly. Now, I'm trying to do the same thing but have the filmstrip running horizontally along the bottom of the page. I'd like the extra thumbs to run off the right and left bounds of this strip. Then, you would have a scroll bar right and left to get to the extras, similar to how you scroll up and down to get to the extras in the vertical strip. However, the extra thumbs keep showing up beneath and and I get a vertical scroll. How can I force the extras to go to the right and give me a horizontal scroll??Thanks
  4. I need some best practice advice on making a slideshow. I just need to incorporate a slideshow of images into a web page, but what is the best technique. My plan: I'll just have a javascript timer that makes a nother request to the server and comes back with the next image in the sequence at given intervals. This seems like it can't be the best thing, particularly since there's the potential for quite a bit of other content to be on the page that contains the slide show; all of this other content would be re- fetched every time the slide changed.Of course, if all of the images were pulled down at once the slide show would then be quite efficient, but this seems like a huge hit on the initial request. Is there anyway to start the slide show while the other images are downloading? I'm sure there must be based upon the performance of sites that I've seen doing similar tasks, but how?
  5. Well, I know they are the same results. But there's a difference in terms of the user interface. The gumby user won't know that they need to right click on an link and choose save as. It would be cool to just have the link automatically go to the dialog that asks them where to save it in their local filesystem. This is what happens if the link is to a file type that the browser can't handle, and it would be a nice default behaviour for image downloads.
  6. Hello. This seems like a no brainer, but how does downloading an image work from the developer perspective. Do I just create an anchor to the photo's URL? This seems to default to opening a view of the image in the browser. I can right click on such a link and choose "save image as", but can I just make a link that goes directly to the download function? Thanks
  7. I'd like to be able to have a photo album where I have a veritcal row of thumbnails on the side and a full image to the right. The thumbnails on the left will be the menu to select which pic is seen in full view to the right. The problem: there might be a lot of thumbnails. How to I get them to scroll on the left without moving the full view image on the right?
  8. I'm trying to get familiar with the margin adn padding attributes. The padding seems to work great. However, I don't see any effect when using the margin attribute. I suspect the problem is that I'm trying to affect <td> elements in a table. Is it impossible to make the elements of a table move around in respect to each other? Why is this? How do I know what elements I can use the margin on?Thanks,Chad
  9. Well, I just did some testing and I believe, as far as I can tell, disabled fields are simply not submitted with the request. If anyone knows differently let me know. I checked the parameters submitted with the request and none of the disabled fields came in, while the non disabled fields all came in.
  10. If I "disable" various form fields, will the submit their values in the request?
  11. I saw this syntax also ( in a book ) document.forms["logonForm"].elements["username"]seems like this will probably work.
  12. I thought you didn't need semi-colons at the end of a javascript statement?
  13. Thanks man!So, is that the reason for ID -- to identify each element individually becuase names don't necessarily have to be unique?
  14. Hello.I've ran into a strange, and perhaps interesting, syntax deadend. I'm trying to access a series of from elements from a javascript function that "enables" them -- sets their disabled value to false. Something like the following . . . form.firstName.disabled=false;form.lastName.disabled=false;form.favoriteColor[0]=false;form.favoriteColor[1]=false;form.favoriteColor[2]=false; NOTE: the array looking notation is the way to name a single element of a radio or check box set. In this case there are three radio boxes with the name "favoriteColor". Perhaps their values are red, blue, and green. Now, my problem. I'm working with some form field names that are tied to back end stuff that, at the least would make it very hard for me to change the names. These include a series of text input fields with the names "arrayPet[0]" "arrayPet[1]" "arrayPet[2]"These are in the html such as <input type="text" name="arrayPet[0]"/>The purpose of these strange names is to allow the user to enter names for one to three pets that are received in th back end under a single array. But that's beside the point. The problem with these names comes when you try to reference these text elements in the function described above. I end up with : form.arrayPet[0].disabled=false; form.arrayPet[1].disabled=false; form.arrayPet[2].disabled=false; And javascript is confused. I imagine its because the syntax is not distinquishable from what it would be if there were a radio or checkbox set named arrayPet.Anyone know how to reference these text inputs invidually without running into this sytax conflict? It doesn't work to reference them as members of the form.elements[] collection because, due to the dynamic nature of the page, its impossible to know the index of these elements.ThanksChad
  15. Let me rephrase that question. Is the javascript access to the DOM as specified by the W3C DOM available in most browsers?In The Definitive Guide to Javascript (Oreilly)there's a chapter called "W3C DOM Reference" and it describes this as possibly not supported in browsers.
  16. chadmichael

    w3c DOM

    What kind of support is there for the w3c dom objects exposed to javascript?Is this pretty much supported by the average browser?
  17. In your script, you are trying to execute the string methods on the form object itself.
  18. Do you mind reposting with the code formatted? Its kind of hard to read.
  19. What is the formulaire?Is that your form name?
  20. No, I don't think so. As I said, the part about setting the target and submitting the form works. Its just that when I add the window.close() it seems to interfere with the execution of the previous lines.
  21. what I'm doing I have a secondary window ( a window that I've opened from the main browser ). There's a form in it. When I submit the form, I want the window to close and the return from the response to go to the main browser window that opened the secondary window. I've got this work, minus the closing of the secondary window, by using the following function that is called to submit the form. function submitForm(){ /* set the target of the form to the name of the opening window */ document.DMUForm.target = opener.name; document.DMUForm.submit();} This works great. But when I try to add a line to close the secondary window (code below), the first two lines fail. I guess its something like that the secondary window is closed before it has a chance to submit the request? function submitForm(){ /* set the target of the form to the name of the opening window */ document.DMUForm.target = opener.name; document.DMUForm.submit(); /* close me ( I'm the secondary window ) */ window.close();}
  22. opener.name is the name of the window not the url of the window. <{POST_SNAPBACK}> I know that opener.name is the name, not url. But the form.target is supposed to be set to a string that is the name of the target window or frame. What I thought would work would be one of the default names such as "_parent", but apparently this applies to the parent frame. Is there such a default name for the opener of a new window?
  23. Hello.I have a form in a secondary window. When the form submits, I want the window to close and the form targe to be the original opening window. The target property of the form takes a string. I tried to use the opener.name but it doesn't seem to work. Are there some tricks or quirks to this.Chad
  24. Although I'm not sure why it is designed this way, I think you need to set the location property itself to the url string. You are setting location.href. I understand that the href contains the string, but the way to make the page change is to set the location itself to the url string. ALSO, you could use the button tag rather than the input tag with the button attribute. I would do this because, in this case, you don't really have a form element which is what the input tag is, but this is all personal preference.
×
×
  • Create New...