20,316 Topics
Hi, I'm new to Daniweb :) and I have a problem which might be not possible. I want to have a image as bookmarklet. In IE, you have to right click on the image and "save as" favorite or "save as" favorite bar item. [IMG]http://www.twiturl.nl/docu/ie.jpg[/IMG] In FF, you can drag …
say i have: document.writeln("0") document.writeln("1") document.writeln("2") document.writeln("3") document.writeln("4") how i do generate them in different order each time but all of them must display? ... please help ex: .... 1 ........ 3 ...........0 ...........4 ........... 2 then another output would be: ........3 .........2 .........4. .........1 ............0 ... all random but …
Form Validation Script: [code]<script language="javascript"> function handler(where){ //check for unusual characters var iChars = "!@#$%^&*()+=-[]\\';,./{}|\":<>?"; var wspace = " "; for (var i = 0; i < where.value.length; i++) { if (iChars.indexOf(where.value.charAt(i)) != -1) { return false; } if (wspace.indexOf(where.value.charAt(i)) != -1) { return "nope"; } } } function emailhandler(where){ …
I am using this thread to show an example to a website on my javascript table editer I made. To see the script in action, just put it in one of your text editers (i.e Note Pad, ect... ect...) Description: With this, you can add cells, delete cells, add rows, …
The code below is to validate the email field in my form, if the field left empty the javascript will alert "please fill in your email" and then it'll take you to a blank page that says "false". I don't want that to happen, I want them to re-enter their …
I'm getting my feet wet with nodebox and Python. What is a real world way to find a library I need, download it, and move it to a directory so that the Import --some library will work? I'm having trouble getting any imports to work from within nodebox. thanks
Hi, In website i am having popup window.Whenever refreshiung the page popup window will come Its working now and i want to move that popup window based on the mouse movement can anyone give some sample code for this thanks in advance
Is there a way to set up a system there extracts SWFs from a webpage automatically? It would be something were you have a text box and you enter the URL of a page into it. The page contains a SWF. The program goes looking in that page and finds …
i have displayed a button on a page, by which a user may report anything to admin about contents complaint. when user click on this button, it leads to a new page where in a form he fills data & send to admin. now i want when user click on …
Hello, as you all already know from my previous question I'm new in PHP(by the way,thanks again for the previous help), I am trying to build a simple "walking" program,so I'll have "forwards", "backeards","right" and "left" buttons and when I click on one of them the picture on the page …
Hey there, I'm having a javascript problem and I can't really figure this out, some help would be greatly appreciated. I have this custom made html/javascript form that passes the submitted values to another form (iframe) found on another website. All the fields are working except the "Country" field. This …
hello, My application is rendering the map by using the geospatial data from the database.when i zoom the map by certain value of the zoom factor, my map image gets zoomed.but the text that is there on the map image remains the same size.how to zoom this text ?? thanx …
IN THE NAME OF GOD HELLO TO ALL i wanna build a program that when it run, in one form equal rows in a DB , build button and with every button clicked, run program that addressed in programaddress column. i build buttons and assign to a array of button. …
hello. i have a page where if you don't select an option an alert message is displayed(i'm using javascript and php). when the user clicks 'ok' the parent page is refreshed. i don't want this(the refreshing). can anyone tell me what to do?
Hello, I use javascript to play remote flv videos on my site. But I tried to play videos from youjizz(dot)com using flowplayer and also jw player. The videos are accessable and they are playing fine in FF but if I want to watch them in IE or Opera the player …
[code]$(document).ready(function() { var childrenEle; function toggleReq() { $('fieldset.fieldsetClass').each(function() { id = $(this).attr('id'); $("#" + id).children().not("div,legend").each(function () { var divEle = $("div").attr('id'); if($(this).attr('class') == 'required') { $(this).css("display","block"); } else { $(this).css("display","none"); } }); }); } function toggleAll() { $('fieldset.fieldsetClass').each(function() { id = $(this).attr('id'); $("#" + id).children().each(function () { $(this).css("display","block"); }); }); …
I am a beginner (very beginner) in vbscript and am having a problem running the following script. This was a html file that I converted to vbscript. I keep getting the same error no matter what support files (recommended) I put in the same or windows directories. Would someone be …
hi all i have two dynamic drop downs of dealer id and category id which work properly with window.location [code] var dealerid; function getList(xyz) { window.location='manage_products.php?category_id=' + xyz; } function getProducts(dealer_id) { var catid=document.form1.category.value; window.location='manage_products.php?dealer_id=' + dealer_id + "&category_id="+catid ; } [/code] but now i want to add static drop …
I'm starting to experiment around with Java Web Start since applets have some limitations. I'm using Net Beans and it's working fine except that I get this pop-up when I run it: [quote] The application's digital signature cannot be verified. Do you want to run the application? [/quote] It would …
Hi I am developing a login screen for my website, with usercode and password fields, and a Login button. I need to know how I can make the Login button automatically submit when the user hits the Enter key in either field (as apposed to the user clicking the Login …
I have no idea why, but the form mailer I'm using is not working correctly. Granted, I'm still a newb, but everything in the code looks fine to me. I'm using a modified version of the free form mailer available at [url]www.TheDemoSite.co.uk[/url] The exact problem is this: I fill out …
Hello all! I have 3 different links on my main page (main.asp) - X,Y,Z. Link X opens x.asp , Y opens y.asp, Z opens z.asp When clicking on X, x.asp opens in a pop up. When I click again on X, the focus will come to the same pop up …
hi all - i'm new to this forum and would love some guidance on this. i'm using a great script from oreilly for an efficient rollover effect on an image map - highly recommend for anyone needing something like this - link is below - my question is how do …
alright i am working on jQuery - UI Sortable Portlets and im trying to pass serialize on to the php so i can update my database with each displays column, and position so it will save for my users i have what I've done so far below if anyone know …
Hi, I have the following search code and want to use prototype js to have it submitted without refreshing the page. I tried a few things, but couldn't make it work, would appreciate any help. Here is the html code: [code] <form method="post" action="quick_stockview.php" name="quickview"> <table border="0" align=center> <tr> <tr> …
I want to avoid user to press " and ' characters. What must i do in keyup event?
[B]is it possible to have Postback method on page Refresh.?? (Hold the values of a form on page refresh..!!) I have Two Columns for Example: Items | Price item1 | textbox(in which we fill price) item2 | textbox(in which we fill price) item3 | textbox(in which we fill price) Add …
Hi guys, I have a two functions in ajax; say for example the functions are...function AB() and function BC in my form I have a this textbox which calls the function AB() through onKeyUp event. I successfully made calling the said function, but what if I'll be calling the two …
Hi. I am Turkish. When the text is written in Turkish, some characters are double bytes in the database. Is there a shortcut to find these characters? Will checking if the high byte of the character is not 0 will work?
Hi folks, My example markup as follows [code=html]<fieldset> <input type="text"></input> <input type="text"></input> <select></select> </fieldset> <fieldset> <input type="checkbox"></input> <input type="text"></input> <select></select> </fieldset>[/code] I want to collect all the child elements inside this two fieldset elements through looping, folks please help me out
At the recent Google I/O conference it was announced that Google crawlers will begin considering urls and links generated by JavaScript, Flash and Flex apps. The issue that this seemingly addresses is that certain links are counted and others are discounted when determining pagerank because of the way they are …
Hi, i'm setting up a couple of forms on the admin section of a CMS i'm developing. I want to use (unobtrusive) modal forms using JQuery, but I'm not sure how to return error messages/feedback from the server and display them [B]within[/B] the modal window. So this is where i've …
I am new to AJAX. I'm trying to write code that will extract from an XML file and then display the results. Keep getting a syntax error. HTML: [CODE] <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Extract Data from an XML file</title> <script type="text/javascript" language="javascript"> <!--The object …
*** [code]form.myTextBox.value[/code] [code]document.getElementById("myTextBox");[/code]
hi to all there i have problem with links management, my problem is that i want to pass the resultSet object to javascript function but it can all me do this but display error undefine link value or object value is null my code is [code=JSP]function hyperlinkvalue(passvalue) { var hyper=passvalue; …
Hi I am working on a little project I'd like to call post database and I got a little problem. when user clicks a page number, I bring html content from server and add it to page. And I can see the new content on the page. But if new …
Hi, I have a main div with a fixed width for which the overflow is set to hidden. Inside that there is a content div which can have variable width depending on the number of its contents. Each content has an image and some text. There may be 100 s …
Anybody can help me? Why [url]http://placesnap.com/recent_ie.asp[/url] not working in IE? In firefox, that page working good
Basically, I have a bunch of input rows, each with id in the form of something like.. item:characteristics:age or item:setting:type1:blah. It's kind of like going down folders to get to the item I want. So as you can see in the code, I am splitting each id and trying to …
Hi all, Actually i want to two link in my page using ajax. Let me explain the problem: Like my site have three page in which about me, contact me and personal info are three page . All these three page are connected with database and fetching some information from …
I have 3 textboxes names myTextBox1 myTextBox2 myTextBox3 onblur i want to check if the value of the checkbox is true. I have a function in my js file. [code] function isNumeric(myString) {.......} [/code] In my JSP file i write; [code] onblur="isNumeric(X)" [/code] I wrote everything and it does not …
can anyone explain me staic vs instance method ..what are the differnce ?
i have this code, im using jquery which im not very familiar and i need help please:D [code] <html> <head> <title>Select and drag?</title> <style type='text/css'> body,html { color:#333; font-family:Calibri; font-size:11px; } .panel {float:left;width:200px;margin:20px;} ul { list-style-type:none; border:1px solid #999; background:#ccc; padding:20px; min-height:150px; width:100px; } li { display:block; border:1px solid #999; …
Hello, This is a JavaScript/PHP question so I will go ahead and post it here. I would like to know if it is possible to access (in a PHP class) a value/variable that has been returned by a JavaScript function. The function is in external .js class. Here what I …
Hi, guys I am here again. How are you? As always, I have a dificult problem.Now I have two radionlistbuttons and when I click in the first i need to put a value in a textbox and when i click in the order i need to put another value in …
Well im trying to get my form to post data to a php file and get back the result. For some reason its not calling mail.php, but instead it just puts all the post data in the current url like [code]somesite.com/index.php?id=value&id=value..etc[/code] instead of [code]somesite.com/[B]mail.php[/B]?id=value&id=value..etc[/code] here is the ajax code [code=javascript] …
is it possible to use the xmlHTTP.responseText in any other java function, after execuation of stateChanged() function??? example in ajax... [ICODE] function stateChanged(){ if (xmlHttp.readyState==4 || xmlHttp.readyState=="complete") { var result = xmlHttp.responseText if (result.length=="0"){ var task = "do"; //i want to use "task" in other js function return task; } …
Hello fellas, long time no see. :) I am getting into jQuery a bit these days, and I was wondering, how do I make a function, which shall be reusable more than once, which shall be making a popup window come up and position itself under the clicked item aligned …
I was helping a friend fix some issues with her iPhone connecting to a JavaScript-heavy (and buggy) site. Long story short, her iPhone cannot type brackets ([]), and I need another way of getting the first element in an array. I thought there might be a javascript function like first() …
hiya, I'm very new to how javascript works and have inherited a website that contains a form that uses the calculate total function...which only works in IE. I've searched all over the net trying to find a solution to get this working across all browsers but not having much luck …
The End.