Jump to content

phpQuestioner

Members
  • Posts

    1,485
  • Joined

  • Last visited

    Never

Everything posted by phpQuestioner

  1. I think that the onmouseover event is going to be about the only way your going to be able to do this.
  2. Again; I will tell you the same as I have told all the rest - "That is your opinion" and you have a right to it. But as means of personal preference; I choose to use tables and css combined or occasionally seperate to accomplish layouts. I am right; because people have the right to choose what ever type of layouts they wish to use. There is nothing wrong with using one or the other and that is the point indeed. In fact; I have enlightened any readers of this and the previous thread.
  3. I could understand that position if you were right. Unfortunately ... This thread appears to have served whatever purpose it might have had. I'm closing it now. Fortunately, I am right and yes; I did prove my point and that is tables vs. css layouts are a matter of "personal preference". By the way, locking me out; will not get you the last word with me. I also noticed that you waited until I left this original thread to lock it; that's not very gutsy AndyB - not giving people a chance to respond to your comments. As a matter of fact; I would say it's pretty cowardly.
  4. XHTML is the same things as HTML; it's just a more strict mark-up. Show me where that is documented - that html tables are going to be de-appericiated in any browser; I do what I do and you can do what you do - again; your another one of those people who doesn't get the point of this post - "personal preference". Maybe you should read the previous points I made in this thread. PS:This thread was already dead; you keep replying with witty comment and so will I - debate king here - you will not beat me on this - I guarantee it - so let it go. Your personal preference is not everyone else's personal preference. That's just in your wisdom book; not mine or everyone else's book.
  5. The problem is that window.createPopup() is not cross browser scripting compatible. Try This Instead: <HTML> <HEAD> <TITLE>Popup Example</TITLE> <script language="javascript"> function show_popup() { var oPopup = window.open('','popIt','width=300,height=225'); oPopup.document.write('<html><head><title>Dynamic Pop-Up Example</title></head><body><h1>Hello World!</h1></body></html>'); } </script> </HEAD> <BODY> <input type="button" onclick="show_popup()" value="Click Me!"> </HTML> I know this will work in IE and FF, but I am not sure about any other browser; you will have to test that for yourself.
  6. Well you didn't say anything about checkboxes before; you just said you had a form with inputs - got to explain a little more specifically in the future; like you did in your above post. But I guess the main thing is; that you got it working.
  7. Try this and see if it is what your looking for: http://www.phpfreaks.com/forums/index.php/topic,179668.msg800776.html#msg800776 You probably will have to implement it a little bit different; but you should be able to configure it to your needs.
  8. Here is another example of how it would work, but let me warn you now; if your trying to get the values of this many input fields at one time; your going to freeze up people's browsers (due to all the memory this script would take up; once it initiated). <script language="javascript"> function doIt() { for (i=1; i<=1000; i++) { document.getElementById("message").innerHTML += document.getElementById("boxy"+i).value + " "; } } </script> <form> <script language="javascript"> for (i=1; i<=1000; i++) { document.write('<input type="text" id="boxy'+i+'" value="Hello">'); } </script> <br><br> <input type="button" onclick="doIt()" value="Return Values"> </form> <div id="message"></div>
  9. It works fine for me; it is getting all the values from your input fields, that have an id of "boxy"; plus the corresponding number, that goes along with the id. The form is not even in play with this script; it is pulling values ("echo"ing is you call it; but that is a PHP term) from input fields that have the "boxy" (plus number) id and displaying the values in your "message" div. Doesn't refresh the page for me; that issue must be coming from somewhere else in you script/page. Did you add the ids to each of the input fields; like the way I showed you in the demo?
  10. Your Welcome - That's just part of learning any scripting language; stressing yourself out; only to find out it was something really simple in the end - lol.
  11. One way to solve this issue is to change the font-size of the select menu's options. I think (now don't hold me to this; because there maybe another way to do this other than a dhtml select menu and if there is; I'm sure someone else on here will let you know); this is one of those browser based display issue that can not be change with CSS. I think IE strictly conforms the select menu's dropdown option uniformly with the CSS style outlined for the select element; as where FireFox understands this issue and overflows the dropdown menu based on the text length of the options. Again this is my hypotheis and I could be wrong and if I am; I know a couple people on this forum who would love to tell me I am. If I were you; I would try to change the font-size and see if that helped and if it doesn't; look into "DHTML Select Menu". I have created them before for instances like this; only my reason was; so that I could completely customize a select menu to anyway I wanted it to look and it will display that way through-out a cross browser platform.
  12. What do you mean you don't know what the selections are when they are submitted; isn't your PHP script receiving the variables and processing them server side?
  13. Use AJAX to send the user's selection to you database; that is if you don't want to reload the page; otherwise, just use PHP by itself.
  14. How about we try it like this: <script language="javascript"> function doIt() { for (i=1; i<=2; i++) { document.getElementById("message").innerHTML += document.getElementById("boxy"+i).value + " "; } } window.onload=function() { doIt(); } </script> <form> <input type="text" id="boxy1" value="Hello"> <input type="text" id="boxy2" value="World"> </form> <div id="message"></div> Can you live with it this way? Of course you will want to change the script around to the way you want it to be; but the above is just for demo purposes.
  15. ok; hold on, let me put it to the test; didn't test it before - be right back in a few
  16. You need to look into something like using Sever Side Scripting (such as PHP) to convert AVI or MPEG files into FLA files. I would try to Google something like that or maybe post this question in the PHP forum or this website or a flash forums website. That is my best advice off the top of my head; sorry it's not to concise, but it's the best I know to tell you.
  17. try this: for(var i = 1; i <= 1000; i++) { document.getElementById("message").innerHTML += document.form.boxy_+i+.value; }
  18. Look into JavaScipts setTimeout() and setIntervial() functions; should be what your looking for.
  19. try this; I used the javascript date() function; if you need this done with php (to get the month) let me know and I will write you a php script that will work for this too. var what = new Date(); var currently = what.getMonth(); var Spry; if (!Spry) Spry = {}; if (!Spry.Widget) Spry.Widget = {}; Spry.Widget.TabbedPanels = function(element, opts) { this.element = this.getElement(element); this.defaultTab = currently; // Show the first panel by default. this.bindings = []; this.tabSelectedClass = "TabbedPanelsTabSelected"; this.tabHoverClass = "TabbedPanelsTabHover"; this.tabFocusedClass = "TabbedPanelsTabFocused"; this.panelVisibleClass = "TabbedPanelsContentVisible"; this.focusElement = null; this.hasFocus = false; this.currentTabIndex = 0; this.enableKeyboardNavigation = true; Spry.Widget.TabbedPanels.setOptions(this, opts); // If the defaultTab is expressed as a number/index, convert // it to an element. if (typeof (this.defaultTab) == "number") { if (this.defaultTab < 0) this.defaultTab = 0; else { var count = this.getTabbedPanelCount(); if (this.defaultTab >= count) this.defaultTab = (count > 1) ? (count - 1) : 0; } this.defaultTab = this.getTabs()[this.defaultTab]; } // The defaultTab property is supposed to be the tab element for the tab content // to show by default. The caller is allowed to pass in the element itself or the // element's id, so we need to convert the current value to an element if necessary. if (this.defaultTab) this.defaultTab = this.getElement(this.defaultTab); this.attachBehaviors(); };
  20. That will just open up a html page in a new window/tab (for whatever you have defined as href; that is what will open; the actual image will not open/display). If your going to do that; you need to do something like this: <a href="sample.jpg" target="_blank"><img src="sample.jpg"></a> You can also display an image in a completely different page with JavaScript or Server Side Language, such as PHP; but I need to know if that is what your wanting to do. If it is; I will show you how to do that.
  21. You don't; unless it's a word document. Otherwise, that is why browsers include the "Print Preview" options; so that people can view the document before the print it.
  22. Where do you want the count to appear; in a textbox or in the page?
  23. OK moneytree; this will work - I tested it, so I know it will. You will use the complete JavaScript below and you would just rename your forms - the form in the page would be "myform" and the form in the ad would be "myform2". Hope this finally solves your problem - Good Luck. <script language="javascript"> function verify() { var errors1 = ""; var errors2 = ""; var errors3 = ""; var message="Please complete the following field(s): \n"; var first = document.myform.realname.value; var last = document.myform.lastname.value; var email = document.myform.email.value; if (first.length == "0") { errors1="First name\n"; } if (last.length == "0") { errors2="Last name\n"; } if (email.length == "0") { errors3="email address\n"; } if (errors1.length >= "1" || errors2.length >= "1" || errors3.length >= "1") { alert(message + "\n\n" + errors1 + errors2 + errors3); } else { document.myform.submit(); } } function verify2() { var errors1 = ""; var errors2 = ""; var errors3 = ""; var message="Please complete the following field(s): \n"; var first = document.myform2.realname.value; var last = document.myform2.lastname.value; var email = document.myform2.email.value; if (first.length == "0") { errors1="First name\n"; } if (last.length == "0") { errors2="Last name\n"; } if (email.length == "0") { errors3="email address\n"; } if (errors1.length >= "1" || errors2.length >= "1" || errors3.length >= "1") { alert(message + "\n\n" + errors1 + errors2 + errors3); } else { document.myform2.submit(); } } </script> </head> <body> <!-- First Form --> <form name="myform" METHOD="post" ACTION="http://moneymakeyourich.com/cgi-bin/formmail.pl"> <input type=hidden name="recipient" value="moneytree@moneymakeyourich.com"> <input type=hidden name="subject" value="Your Subject"> First Name : <input type=text name="realname" size="20"> Last Name : <input type=text name="lastname" size="20"> Email : <input type=text name="email" size="20"> <input type="button" value="submit" onclick="verify()"/> </form> <p>Important:I will never share your information with anyone !</p> <BR><BR><!-- REMOVE THESE LINE BREAKS - FOR DEMO ONLY --><BR><BR> <!-- Second Form --> <form name="myform2" METHOD="post" ACTION="http://moneymakeyourich.com/cgi-bin/formmail.pl"> <input type=hidden name="recipient" value="moneytree@moneymakeyourich.com"> <input type=hidden name="subject" value="Your Subject"> First Name : <input type=text name="realname" size="20"> Last Name : <input type=text name="lastname" size="20"> Email : <input type=text name="email" size="20"> <input type="button" value="submit" onclick="verify2()"/> </form> <p>Important:I will never share your information with anyone !</p>
  24. Also; I didn't put the CSS (in the script above) to make it an actually tab content container, but basically it just for example purposes anyway. You can add/modify the CSS as needed to format/construct the tab content div.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.