20,316 Topics
Hi all I'm using Visual Studio 2008 to develop my first webpart. I have created a PageMethod to call from Javascript. From searching, I believe that you cannot create a PageMethod in the component directly. Question is, how does one go about creating a PageMethod in a Sharepoint WebPart that …
[quote] Once my dynamic table is populated with names entered by user, it should no longer include the initial text: Your name list is empty. Can anyone help me with this final code? [/quote] [code] <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>My Dynamic Table</title> <script …
Hello all. I have a problem with my site. Well there are some times that when i click on a link from the recent activity I get my custom error 404 page. This happens when the url is [url]http://domain.com/[/url]............. The problem is solved and i can get inside the link …
Hey, I have created a searcher on my companies website that displays products that we sell. It displays the code, price, blah blah blah. basic stuff. but anyways i want to display some information for the product not on the page but on a tooltip like screen. I know a …
Hello all. I have this problem. I have a div with inactive buttons in a jsp page, buttons like select all | add to basket | compare | .... and some java logic determining whether any products (coming from a backend) are found on page load. I want to make …
Hey all, I have a very simple collapsible panel which is working fine right now, but I am trying to make the expanded item's text bold "Without doing a post back or use of links". Here is the code: [CODE] <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=windows-1252"> <title>Collapsible Panel Test</title> </head> …
Hi, How can i pass an array from jsp to javascript function.i have to design a grid in jsp.For that i'm using javascript functions. [URL]http://www.code-magazine.com/article.aspx?quickid=0303111&page=3[/URL] this is the link where i got the script.here i have to pass an array of values to display in that grid.can any one pls …
Hi.. [code] <?php $today = mktime(date('g')+5,date('i')+30,date('s')); $today=date("M j Y g:i a",$today); echo $today; ?> [/code] When i am refreshing page only that time i got the correct value of time... so i want to show time i.e. [COLOR="Red"]continuously updated time on page without refresh page..[/COLOR] How to do that???
Can someone please tell me the code MySpace uses to put the little pluses & minuses in the corner of their boxes to make them collapse like they do. I really need this for my site because I have a few boxes on my users pages that I need to …
Here is my code what is my problem. I need a window to open up that says ok or cancel. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang = "en" dir="ltr"> <head> <meta http-equiv="content-type" content="text/html; charset=iso-8859- 1" /> <title>Exit Row Requirements</title> </head> <body> <script type="text/javascript"> /* …
At the moment I have a normal ajax example that refers to an xml file. This xml file is a conversion of a mysql database file I have. Now I wish to cut out the middle man (xml) and refer straight to the database. Any Ideas on how I would …
Hey, Right now I'm working on a login system for my site. The user enters their info, the info is sent to the php page through ajax, the php checks if the input fields are empty and checks if the info is correct. If fields are empty or the info …
I'm trying to create a tag like routine for music genres. I have an array with various music genres in it. Those genres appear in a select box so they can be added to a text area... The problem is, I want to be able to add multiple genres instead …
hi guys, somebody help me please i need to know how to retain any input on page reload. I have 2 chained combo box (province and city) when a user choose a province, the next combobox should be populated. I use a script that reload the form to execute a …
Hello, I need to resize an I-fame according to the height of an external page. I have found some google code that does what I need but it is way bloated. Anyone how to do what this code does but with less bloat? Thanks in Advance! [CODE] ( function(){ var …
I want to create a web browser which informs the program when the URL changes like in ibrickr I want to run javascript in browser which tells the program Javascript:void("getFile"); is the URL now when the program gets the URL it useses a fund like strcmp() to know the text …
I have designed a Registration form with the help of HTML. Here in the tage <form> I have given the action to the JSP page. (e.g. <form name="form1" action="sample.jsp">) . I have to validate this form bu javascript. The form is validated on clicking the Submit button of the form. …
[QUOTE]Can anyone help me what would be the best way to transform a text file data into a trendchart... using a Jpanel! The data file would have the type of errors and the quantity that each error has appeared... Then in the Jpanel would get the trend chart composed by …
I have created a page with a number of frames. One of the frames has a form with a submit button. On submit, I want to close the entire page (ALL the frames) and open the new page in a fresh window. How do I do that?
hi all, i want a image gallery script like [URL="http://www.itasveer.com/doodlepad.do"]this one[/URL] using php or javascript or ajax does any please refer me to the site where i can get the script or i am ready to pay for the script too thank u in advance
i have one statement .that statement has two combo field(Entered/Approved) . when combo field is marked as Approved then date isto be moved to date field.and date should not moved to date field when entered is selected from combo feild i mean i want to move todays date if and …
Here is my scenario: Users opens IE and home page loads based on our group policy in that page I need the following to happen: 1) creates a cookie with an expiration date of 30 days 2) checks to see if cookie is set, if it is set and its …
My program should allow to display prompt box to enter values for a b and c and should display message in prompt box like "invalid number please enter number again" for a if a ==0 and a is not a number. Same with b , but b can be equal …
I have been doing research and to be able to make a scrollable drop down box requires javascript I have been informed. Can anyone help me with this or a tutorial? Example code: [code] <select name="cars"> <option value="volvo">Volvo</option> <option value="saab">Saab</option> <option value="fiat" selected="selected">Fiat</option> <option value="audi">Audi</option> </select> [/code] Goals: - Only …
Hi there, I'm trying to use a dynamic drop down box to populate some input fields.. So far I can make the drop down box populate correctly. I can also link the input fields to an id in my table, however I'm not sure how to link that id with …
Hi all, I'm trying to add 3 rows on a click of a button and each row has 14 columns with text boxes and 4 of these textboxes has onblur events which dont work in the new rows added can someone help me with this problem the functions i tried …
hi, is someone knows how to accept the entered values the table cells when i clicked a button, instead of using the setSurrenderXXXX() method.
i want move date whenever one perticular field gets some value... eg. if i have field name event and date .event is a select box . when approved is moved to event box todays date should move to date field. pls send me a javascript related to this
Hi everyone, Many thanks for looking. Here's the problem. I have a form with three option buttons. Depending on what one the user clicks on I need a particular div to be shown, while the other two divs are to be removed. The only problem is that the removeChild doesn't …
Hi All, Does anyone know how I can validate data entered into the cell of a datagrid? What I am trying to do is this: each time a user enters a value into a particular columns cell, I want to update the corresponding cell depending on the value entered. For …
In my php file [code] echo "<script>alert('Username/password pair is invalid.Please try again.')</script>"; echo"<script language='javascript'>window.location.href='login.php'</script>"; [/code] I am displaying message like this but when message is displayed background php design is blank and then again login page display. I want show message like [URL="http://www.bin-co.com/javascript/examples/print.php#"]http://www.bin-co.com/javascript/examples/print.php#[/URL] when we click on [U][B]Create Alert[/B][/U] message …
I have a website SNIP The website allows the customer to upload affilliate banners, the affilliate code is normally a js file piece of code which the client adds to the website, the client cannot modify that piece of code as the .js file sits on the affiliate companies website. …
i have tried a few tutorials but i cant get this working. I am trying to create a div with the id of overlay and insert it right after the body tag when a function is run. can anyone help? thanks
Hi all I was wondering if someone can let me know of a quick and easy way of interacting with a Javascript control on a web page. "<a href="#p189191" name="option66" onclick="selectPollOption(66);" class="vote">Vote</a>" That's the control I would like to activate, I was thinking I could use a regular expression to …
I need to get all children of a DIV and their children too. I mean I need to get the HTML text of a DIV but I don't like to use innerHTML since it does not support the values of inputs in many browsers. How can I do that? :-/
hi i have a parent window with an external url iframe. when the parent loads i want to set the iframe footer to display:none;. is there a way to do this? i have looked all over w/no luck. thanks
I have two pages 1.) form page 2.) I-frame page. What I am trying to do is: Once the form page is submitted, javascript in the second page would retrieve the values and place them into a an I-frame with a given url. Example: === Page One === <form action="page123.html"> …
How do I use a submit function to ensure that a name field only has letters, zip code field only has numbers, etc. w/ Javascript when submitting a form?
[url]http://www.bright-shadows.net/[/url] This website have many challenges testing your skills of logic and programming. Some is quite hard and hard to find solutions on google. I am almost a javascript master on that website. but didnt figure out four of the javascript yet. Mostly becuase they have to do with crypto. …
Hi, Button below opens new popup window but doesn't send POST data from form. How can i send POST data? I know "form action" but, i want this way. Thanks [code] <input type="submit" name="buttonUnit" value="Add" onClick="window.open('add.php','Done','width=400, height=130')"> [/code]
i wonder how can write a JS variable inside HTML here's the Line: var texture=document.getElementById('texture').value; formdiv.innerHTML = formdiv.innerHTML +'<td align=center> JS VARIABLE TEXTURE</td>'; any help is appreciated
Can somebody help me with the code on how to capture the line number at the current cursor position?.
Hi , I am having a very strange issue with a piece of DHML on I.E 6, attached code. Here is the scenario. There are two html files, run 1.htm. The Drop down has a default value, if you click on populate button, a JavaScript will re populate the drop …
hi there all i have a input text , like this one : [CODE] <form> [INDENT]<input type="text">[/INDENT] [INDENT]</input>[/INDENT] </form> [/CODE] i want whenever the input is changed (without pressing [COLOR="Green"]Enter[/COLOR]) a function in javascript named "welcome()" would be called, [COLOR="Green"]onchange [/COLOR] function requires pressing [COLOR="Green"]Enter[/COLOR] and i dont want it.
i have a form which contains a combo box and a table ...i need when the user selects an option the page be reloaded but with the table contains the new data for the option he choosed from the combo box can anyone help
[code=javascript] <SCRIPT language=JAVASCRIPT type=text/javascript> <!-- /*Callout: Here the image objects are stored in an array.*/ var mySlides = new Array(); mySlides[1] = new Image(); mySlides[2] = new Image(); mySlides[3] = new Image(); mySlides[4] = new Image(); mySlides[5] = new Image(); mySlides[6] = new Image(); mySlides[7] = new Image(); mySlides[8] = …
For example, I want to upload 10 files to a website. However, that site will only allow me to upload 1 file at a time. I want to write a script that will help me upload those 10 files one after the other on its own. How many ways can …
I'm fairly new to programming, but I've been spending a lot of time lately learning HTML, javascript, and some .NET related scripting/programming. I also have written programs in C++. I'm looking for a project to learn from. My other hobby is writing. I like Office, Outlook, and Thunderbird. I'm looking …
Hello there, I have a page. In its left side selection controls and right side one iframe. The user has to select from controls from left side and submit the form. In button click function calling the iframe and loading another .aspx page to display crystal reports The report page …
The End.