719 Posted Topics
Re: Like this: [CODE] window.onload = function() { var jumpMenu = document.getElementById("jumpMenu"); jumpMenu.onchange = function() { var val = jumpMenu.options[jumpMenu.selectedIndex].value; if ( val != "#" ) { window.location = 'http://www.mysitehere.com/subfolder/subfolder1/subfolder3/' + val; } } } [/CODE] | |
Re: I don't get it. Do you have one textbox for @start and one for @dayend? @Dayend is a number or a date? | |
Re: Hi there, create the text inputs are very easy. Check out this example: [CODE] <html> <script type="text/javascript"> window.onload = function() { var select = document.getElementById("select"); var texts = document.getElementById("texts"); select.onchange = function() { var val = select.options[select.selectedIndex].value; texts.innerHTML = ""; for(i=0; i < val; i++) { texts.innerHTML += '<div><input type="text" … | |
Re: Checking browser it's not a good solution cause you'd be leaving some unknow browser behind. It's best just to check if what you need is supported by the browser. Checkout this post: [URL="http://www.quirksmode.org/js/support.html"]http://www.quirksmode.org/js/support.html[/URL] If you still wants to check out the browser, you can use either [URL="http://docs.jquery.com"]JQuery[/URL] or [URL="http://www.quirksmode.org/js/detect.html"]Browser Detect[/URL] … | |
Re: Hi, two things: first your code has an error, the correct is: [CODE] success: function() { $('#freekk').html("<div id='message' style='color: #4f4f4f; font-size: 12px; display: inline;'></div>") .fadeIn(1500, function() { $('#message').append("ClassMate request sent!"); }); } [/CODE] second, change the attribute [B][I]type[/I][/B] from submit to button, like this: [CODE] <input type=button value='Add ClassMate' class='nrbutton … | |
Re: It's possible if both page and iframe have the same domain. You could do something like this, using JQuery: [CODE] <html> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script> //document ready $(function() { //inserts iframe $('<iframe src="page_test.htm" />').appendTo("body"); //add load handler to iframe $("iframe").load(function() { //Get all links<a>, unbind the event onClick and set … | |
Re: Hi there, i've always used JSON.NET in my projects, and for me it was very successful and easy to use. The site has some good example too, and you can find a lot more on the web by searching it. Link: [URL="http://james.newtonking.com/pages/json-net.aspx"]JSON.NET[/URL] Hope it helps. | |
Re: Actually i'm doing something like that right now. But i'm not doing web site code generator, i'm doing an form and reports code generator. I definitely think it pays off. But it's not so simple as it look like. If you have good templates, with well organized source code, it … | |
Re: It's quite simple, and you can do it in a lot of ways. One one is to have an hidden drop down that'll be shown as the user clicks the button, and at the same time you need to hide the label that os appearing. Another way is to request … | |
Re: The link is not working, so i can't see the problem. | |
Re: Take a look at [URL="http://docs.jquery.com/AjaxQueue"]AjaxQueue[/URL] plugin. | |
Re: Hey, you need to specify wich div you want to show up. By the structure of your HTML I guess this should work: [CODE] $('div.visualiza').click(function() { $(this).parent().parent().children('div.contentor_visualiza').toggle(200); return false; }); [/CODE] Hope it helps | |
Re: You don't have any clue about coding, do you? I recommend [URL="http://w3schools.com"]http://w3schools.com[/URL] for begginers. Good luck! | |
Re: There is a lot of ways you can do that, one of them is: [CODE]<html> <head> <title>JavaScript Window Open/Close Example </title> </head> <script type="text/javascript"> var my_window; function popuponclick() { my_window = window.open("", "mywindow","status=1,width=350,height=150"); // Open window if (my_window.opener == null) // Set opener window of the child for compatibility issues … | |
Re: Just an idea for you to test: [CODE]elem2.style.opacity = parseFloat(elem2.style.opacity) + interval;[/CODE] | |
Re: Hi, you should use JQuery to make it easier. [CODE=HTML] <script type="text/javascript" src="jquery.js"></script> [/CODE] With JQuery the folliwing script should work: [CODE] // Tell the browser to execute fixHeights when the document is ready $("document").ready(fixHeights); function fixHeights() { // Get elements reference var content = $("#indexcontent"); var blog = $("#indexblog"); … | |
Re: Hi, I would do it using JQuery. I just didn't understood if the refresh will be trigerred by some user event or if it should refresh automatically. [CODE] function requestDivContent() { var url = "http://myPage.com"; // URL to get the data var data = // Paramters, PHP Ex.: $name = … | |
Re: Just set type="button" [CODE=html] <input type="BUTTON" name="ConfirmBooking" id="ConfirmBooking" value="Confirm Booking" onclick="Accept()" /> [/CODE] When using input for buttons, use onClick event for type="button" and onSubmit for type="submit"(in this case, the listener must return false for canceling the submit). Hope it helps. | |
Re: I would try something like this, tested on IE 8 and FF 3 [CODE=javascript] <script type="text/javascript"> window.onload = function () { var menu = document.getElementById("menu"); // Get menu object for (var i=0; i < menu.children.length; i++) { menu.children[i].children[0].onclick = menuItemClick; // Add click events for each menu item } } … |
The End.