719 Posted Topics

Member Avatar for ace3df

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]

Member Avatar for AleMonteiro
0
242
Member Avatar for dougancil

I don't get it. Do you have one textbox for @start and one for @dayend? @Dayend is a number or a date?

Member Avatar for cvplay
0
123
Member Avatar for anurags1932

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" …

Member Avatar for AleMonteiro
0
111
Member Avatar for PinoyDev

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] …

Member Avatar for AleMonteiro
0
71
Member Avatar for tcollins412

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 …

Member Avatar for AleMonteiro
0
122
Member Avatar for miriam159

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 …

Member Avatar for AleMonteiro
0
3K
Member Avatar for Aties

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.

Member Avatar for Aties
0
1K
Member Avatar for br_astronut

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 …

Member Avatar for AleMonteiro
0
207
Member Avatar for andrewliu

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 …

Member Avatar for AleMonteiro
0
85
Member Avatar for Abhishek Joshi
Member Avatar for Adam_C
Member Avatar for Adam_C
0
193
Member Avatar for fantasma

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

Member Avatar for fantasma
0
192
Member Avatar for astindeveloper
Re: help

You don't have any clue about coding, do you? I recommend [URL="http://w3schools.com"]http://w3schools.com[/URL] for begginers. Good luck!

Member Avatar for AleMonteiro
0
66
Member Avatar for localp

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 …

Member Avatar for localp
0
128
Member Avatar for kendaop

Just an idea for you to test: [CODE]elem2.style.opacity = parseFloat(elem2.style.opacity) + interval;[/CODE]

Member Avatar for AleMonteiro
0
123
Member Avatar for kischi

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"); …

Member Avatar for kischi
0
177
Member Avatar for public-image

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 = …

Member Avatar for rizvihaider72
0
105
Member Avatar for gchurch

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.

Member Avatar for gchurch
0
7K
Member Avatar for shuka79

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 } } …

Member Avatar for AleMonteiro
0
186

The End.