719 Posted Topics

Member Avatar for Celcuz

That is easily accomplished with css, use position [B]fixed[/B]. Fixed position is relative to the browser window, so it will never move even if the page scrolls. Good luck.

Member Avatar for AleMonteiro
0
53
Member Avatar for tqmd1

I'd say to try this: [CODE] $(document).ready(function(){ $('input[name=button1]'.click(function(){ $("p").hide(); }); }); [/CODE]

Member Avatar for AleMonteiro
0
106
Member Avatar for BenzZz

Here is a demo: [CODE] <html> <script> function slcMes_change() { document.getElementById("slcDia").options.length = 0; for(var i=0; i < 31; i++) { document.getElementById("slcDia").options[i] = new Option(i+1, i+1); } } </script> <body> <select id="slcMes" size="1" onchange="slcMes_change()"> <option value="0">Select</option> <option value="1">1</option> <option value="2">2</option> <option value="3">3</option> <option value="4">4</option> </select> <select id="slcDia" size="1"></select> </body> </html> [/CODE] …

Member Avatar for AleMonteiro
0
157
Member Avatar for Julia25

This thread discuss the same thing: [URL="http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/405660"]http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/405660[/URL]

Member Avatar for Troy III
0
316
Member Avatar for Kinetic

JQuery UI has a good drag and drop functionality. When adding the drag on drop functionality you must specify the drop event listener, so you can do the redirection.

Member Avatar for stbuchok
0
74
Member Avatar for Julia25

You have the logic, you just need to get the divs instead of the images. To do that use: document.getElementsByTagName("div"). And don't forget to loop throw the array, cause in your code you are justing change the image indexed at 0.

Member Avatar for Julia25
0
397
Member Avatar for anish.anick

Yes, it's possible and not much complicated. There's another post about this. See here: [URL="http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/405660"]http://www.daniweb.com/web-development/javascript-dhtml-ajax/threads/405660[/URL]. There he is doing with pure javascript, i would do it with JQuery, it would be much easier. Good luck.

Member Avatar for AleMonteiro
0
109
Member Avatar for nirveshverma

What do you want to display on the homepage? The users? If so, use asp:repeater to create a box for each one. To store multiple images you can do it both ways, as you said it. But i prefer to store it on disk and store the file path in …

Member Avatar for AleMonteiro
0
309
Member Avatar for toplisek

href="mailto:no-reply@mydomain.com" specify to use the mailto protocol with the [email]no-replay@mydomain.com[/email] as a parameter. To do what you want you need to create a javascript function that will make an ajax request to change the session variable and return the content you want. Hope it helps.

Member Avatar for AleMonteiro
0
133
Member Avatar for Shillz

Your code looks ok, did you check those itens: - From e-mail and from password are really ok? - Gmail port is really 587? If it's ok, try those things: - Don't set EnableSsl - Don't set UseDefaultCredentials - Don't set DeliveryMethod i used gmail smpt and never set those, …

Member Avatar for Shillz
0
208
Member Avatar for nice_candy
Member Avatar for EddieC
Member Avatar for sachinmaster

I won't code it for you, but the solution is quite simple: You want to have the same functionality in the top box and in each added row, so you need to use the same logic, same functions and same css classes. But you need to make sure that it …

Member Avatar for AleMonteiro
0
332
Member Avatar for rameshsawant

When you set the selectedValue with javascript it does not update the UI, for it to work, as you wish, you have to set the [B]selectedIndex[/B] property. If you don't have the selected index you may loop the select options and test the values to find the right index. Hope …

Member Avatar for AleMonteiro
0
86
Member Avatar for naveedqadri
Member Avatar for haimz

Take a look at this: [URL="http://javascriptsource.com/page-details/highlighted-text.html"]http://javascriptsource.com/page-details/highlighted-text.html[/URL]

Member Avatar for AleMonteiro
0
96
Member Avatar for PriyalRao
Member Avatar for luweegee

JQuery make this very easy: [CODE] <html> <head> <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> <script type="text/javascript"> $(function() { $("#menu > li").click(function() { $(this).children("ol").slideToggle(); }); }); </script> </head> <body> <ul id="menu"> <li>Menu Item 1 <ol> <li><a href="#">Sub Item 1.1</a></li> <li><a href="#">Sub Item 1.2</a></li> <li><a href="#">Sub Item 1.3</a></li> </ol> </li> </ul> </body> </html> [/CODE] Hope …

Member Avatar for AleMonteiro
0
352
Member Avatar for charles110

[CODE] echo '<button onclick="jabutton">Run</button>'; [/CODE] You can't put an <button> inside an <script>.

Member Avatar for AleMonteiro
0
129
Member Avatar for phorce

There was a couple of problems with your code... i've adapted to work somewhat: [CODE] <html> <head> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js" type="text/javascript"></script> <style type="text/css"> .cancasing { margin-left: 200px; margin-top: 100px; border-style:solid; border-width:1px; width:900px; height:500px; } </style> </head> <script type="text/javascript"> jQuery.fn.extend({ // Extends JQuery methods drawRect: function(options) { // add drawRect method var …

Member Avatar for AleMonteiro
0
90
Member Avatar for methuselah90

Jean, I didn't fully understood what you are trying to do, but I suggest you use Regular Expression for such comparisons.

Member Avatar for AleMonteiro
0
210
Member Avatar for Xtremefaith

Please post the code for gallery.php. The parameter 'g' is being passed thru the link, but maybe is not being used on gallery.php.

Member Avatar for Xtremefaith
0
477
Member Avatar for asif49
Member Avatar for asif49
0
99
Member Avatar for wilko1995
Re: Menu

What you want is a horizontal accordion menu. There's a lot of example on the web. Here's a couple, using JQuery: [url]http://designreviver.com/tutorials/jquery-examples-horizontal-accordion/[/url] [url]http://www.portalzine.de/Horizontal_Accordion_Plugin_2/index.html[/url] Hope it helps.

Member Avatar for AleMonteiro
0
89
Member Avatar for Violet_82

I'd suggest that you first create the HTML and CSS of the image displayer(the 3 layers your friend told you about). When the look is the way you want, you hide it(display: none; for example) and then start playing with JS e JQuery to open the displayer and set the …

Member Avatar for Violet_82
0
956
Member Avatar for cgull

Man, you posted 900 lines of code. Sorry, but I don't think anyone will go thru all that. Post only the section you need help with. Cheers.

Member Avatar for AleMonteiro
0
214
Member Avatar for sun-tzu

The syntax is wrong. This should work: [CODE] (function($){ $.fn.randomize = function() { var defaults = {}; var options = $.extend(defaults, options); return this.each(function() { obj = $(this); alert(obj); }); } })(jQuery); [/CODE]

Member Avatar for AleMonteiro
0
107
Member Avatar for vuyiswamb

To get the text box is very simple, you can use the class selector to match all text boxes with that class: [CODE] <script> $(".contentbox").keyup(function() { ... }); </script> <input type="text" class="contentbox" /> [/CODE] For each dynamically created text box you will have an count box? If so you'll have …

Member Avatar for vuyiswamb
0
732
Member Avatar for poloblue

You should only create the elements by JS when needed. You can create the table in pure html and then just add the dynamic rows. Something like this: [CODE] <html> <head> <title>Future Value Calculation</title> <style type = "text/css"> table { width: 100% } th { text-align : left } th …

Member Avatar for poloblue
0
2K
Member Avatar for Donnovan
Member Avatar for gerbz

I didn't understood much of what you said. But PHP cannot hold a JS var, PHP can only execute JS by writing it and JS can only execute PHP by a server request. Is something like this you want? [CODE] <?php echo('<script type="text/string">window.open(....);</script>'); ?> [/CODE]

Member Avatar for gerbz
0
230
Member Avatar for Rizi004

The best way to validate e-mail address is with regular expression. Here's the one I use: [CODE] // returns true or false function isEmail(str) { var regExp = /\b([\w-\.]+\@([\w-]+\.)+[\da-zA-Z]{2,4})\b/; regExp.test(str); } [/CODE] Hope it helps.

Member Avatar for Rizi004
0
390
Member Avatar for ivanichi
Member Avatar for fire eaters

In a <select> you must use the onChange event to do this kind of stuff. Because click event will be fired before the user select some option.

Member Avatar for Taywin
0
138
Member Avatar for bloodbender

When you use the keyboard to select the options and then send the form, witch value does it have? If you alert the value of a select, using keyboard to select it, what happens? It's undefined or a wrong value?

Member Avatar for bloodbender
0
181
Member Avatar for uselessninja

Javascript can't connect direct with the database. You have to send the data to the PHP page that will handle it. You can use JQuery to do it cleanly with AJAX. [CODE] // Send a post request to PHP_PAGE.PHP with the image data $.post("PHP_PAGE.PHP", { image: myImageVar }, function(response) // …

Member Avatar for uselessninja
0
196
Member Avatar for nblackburn

Use location.search to get the query from the url. Like this: [CODE] $(function(){ var path = location.pathname.substring(1); if ( location.search ) path += location.search; if ( path ) $('#nav ul#navigation li a[href$="' + path + '"]').attr('class', 'selected'); }); [/CODE] Hope it helps.

Member Avatar for nblackburn
0
141
Member Avatar for calebcook
Member Avatar for rad1964

You are alerting "req.value", witch doesen't exists. And you cannot set a <select> innerHTML, you must add options to it. The PHP page should return just the data, without the HTML. You could do it with XML, JSON or with your own syntax. If you in the future need to …

Member Avatar for rad1964
0
395
Member Avatar for GrinShady

What do you mean? Your code is working ok. I mean, it's adding text inputs and buttons, and the button reset works fine too.

Member Avatar for Taywin
0
172
Member Avatar for sammry

IE needs to be configured to accept ActiveXObjects in the advanced properties. If the browser is set to not accept it, you'll receive "Access Denied" error.

Member Avatar for AleMonteiro
0
197
Member Avatar for dantheman50_98

It's quite simple with JQuery. The boring part is to make the css. Check this simple example: [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() { $(".item").hover(function() { $(this).css("z-index", 999); // Set item to be on top of everybody else $(this).children(".label").slideUp(); // Hide label on mouse over $(this).children(".description").slideDown(); // …

Member Avatar for AleMonteiro
0
223
Member Avatar for chiiqui

To learn the basics: [URL="http://w3schools.com"]w3schools[/URL] JS References: [URL="http://www.devguru.com/technologies/ecmascript/quickref/javascript_index.html"]DevGuru[/URL] [URL="http://javascript-reference.info/"]javascript-reference[/URL] PHP Referece: [URL="http://php.net/docs.php"]http://php.net/docs.php[/URL] XHTML Tutorial: [URL="http://www.webheadstart.org/xhtml/"]http://www.webheadstart.org/xhtml/[/URL] XHTML Reference: [URL="http://www.w3.org/TR/xhtml1/"]http://www.w3.org/TR/xhtml1/[/URL] AJAX Tutorials: [URL="http://www.php4every1.com/tutorials/jquery-ajax-tutorial/"]http://www.php4every1.com/tutorials/jquery-ajax-tutorial/[/URL] [URL="http://www.sitepoint.com/ajax-jquery/"]http://www.sitepoint.com/ajax-jquery/[/URL] Good luck with the studies.

Member Avatar for AleMonteiro
0
115
Member Avatar for newmaster

Hi, you have to loop the existing rows and see if the values matches. And one advice, don't use ////////// in comments. Instead use //------ or /******/. Here is the loop code: [CODE] //------------------------------------------ // here is my code to change quantity //------------------------------------------ if ( tab.rows.length > 2 ) { …

Member Avatar for AleMonteiro
0
278
Member Avatar for stranger_on_way

It would be something like this? [CODE] <html> <head> <script language="javascript"> window.onload = function() { var divImages = getById('images'); for(var i=0; i < divImages.children.length; i++) { divImages.children[i].onclick = function() { getById('images-list').innerHTML += '<img src="' + this.src + '" width="100" height="100" />'; } } } function getById(id) { return document.getElementById(id); } …

Member Avatar for AleMonteiro
0
256
Member Avatar for Dredgy

I don't think you can do it directly. You would have to use some PHP MVC framework. Natively PHP is executed by a file request, not an method request.

Member Avatar for AleMonteiro
0
142
Member Avatar for Aksel
Member Avatar for Aksel
0
146
Member Avatar for sparkey

You are using Windows Forms or ASP.NET? In asp.net there is the Session object. That you can use like this: [CODE] Session["myVar"] = 10; int myVar = (int)Session["myVar"]; [/CODE] If you are using windows forms and don't know if there is anything like that. But you could use static variables …

Member Avatar for sparkey
0
153
Member Avatar for newmaster

I've add somethings to your code to make it work like you would like it to. To update the total and grand total after changing the value you need to listen to the input change event, so you know when to recalculate it. [CODE] <html> <head> <script type="text/javascript"> function updateSum(formID, …

Member Avatar for newmaster
0
2K
Member Avatar for jogesh_p

Use [URL="http://jquery.com"]JQuery[/URL] my friend. They have the best selectors. [CODE] //To set the innerHTML of <li class="item31"> // # is the ID select // . is the class selector $('.item31').html('My new HTML'); [/CODE] JQuery it's a very useful JS lib, learn it and it'll save u time =) Seeya.

Member Avatar for jogesh_p
0
131

The End.