html

Send code from page to php script

Hi. I have a html page with javascript which change the content of page and I want to send the new content to php script? How can I make this? ...

embedding an excel document in an intranet browser, and navigate to a sheet

It would make my user's lives much easier if I could do the following; Allow an Excel document to be viewed (not edited) in Internet Explorer 8 Facilitate jumping to particular sheets in that document I can embed the Excel file using an iframe which works, but I am utterly stuck when it comes to jumping to a particular named workshee...

childNodes.length 0 in Chrome / Correct In IE & FF

I have a div with children that I need to crawl looking for specific links. The HTML looks like so: <div id="ctl00_LeftNav"> <h3> <a href="../App_Templates/#" rel="0">Menu 1</a></h3> <div> <p> <span> <div style="padding-left: 0px; font-weight: bold;"> <a href="javas...

double quotes makes text dissappear, why?

Whenever the texts value has double-quotes, everything behind and including the double-quotes dissappear. Ex: Nice bmw m3 with 19" wheels BECOMES Nice bmw m3 with 19 the part after the double-quotes is skipped. Is there anyway around this? About the code below: This is for a form on a php page, so when the form is submitted to itself ...

css not working in table "td" , but it works for "th"....what's going on?

I've been coding a webapp for some time now and all the layout, css was working fine. Some time in the last week or so I made some kind of a change that I absolutely have no idea what I changed that is causing this problem and I've tried reversing the code with no luck. I have figured out however that the problem goes away if I use a <...

How do I query a database field but ignore the HTML markup?

We have a field that contains HTML markup for formatting on the website, but we need to query just the text that should render on screen, not things like CSS tags, tag names, property names, etc. Is there a way to ignore the markup right in the SQL query or Stored Procedure? If there are ways to do this, will we have performance issues ...

Enforce numbers in mobile web form

I have a simple webform targeted for Opera Mini and Opera Mobile. I'm using just a HTML input element. Now I would like to restrict the element to only have integer numbers. Is there a way to enforce this in this browser (possible even that the phone will have it's number mode on when entering the form)? And if I wanted to allow floats...

CSS, JS questions on (1) improving JS code through CSS and (2) removing blue dotted borders around hyperlinked images

div.img { margin:7px; border:3px solid gray; height:110px; width:110px; float:left; text-align:center; } div.img img { display:inline; margin:3px; border:1px solid white; } div.img a:hover img { border:3px solid yellow; } function handleMouseClick(imageName) { document...

How do I create a dialog in javascript?

Hello, The goal is to create a similar to the flag dialog at stackoverflow that shows on clicking the 'flag' button located under a question,but since I'm new to web development I don't understand certain things. This is what I have: This is the markup for the button: <a id="flag-post-2239985" title="flag this post for serious probl...

Moving a large set of HTML objects on the page and rebinding events with jQuery

I have a DIV with many elements that are all clickable. Each one with it's own unique event. This DIV has a "docked" mode where it shows in some other place and layout on the page, when the mode is toggled. I have to note that my main target browser is IE8. Many of the problems I'm facing here (SSSLLLLLOOOOWWWWW) just go away when I ...

jquery, array , html , append

Hi, I want to take "div" s and and this html in "li" . This is my HTML code: <ul class="NewContent"> </ul> <div class="test"> <span>Text1</span> </div> <div class="test"> <span>Text2</span> </div> and jquery (not sure if it is ok started): <script type="text/javascrip...

Open a Spry accordion panel by "onmouseover" instead of "onClick"?

Hi, I added a spry accordion, but the panels only open if the user clicks on it. Is it possible to open a panel by mouseover? And if so how? If you go here, they show you how to do this using buttons, but the methods only include: 1)OpenFirstPanel() 2)OpenNextPanel() 3)OpenPreviousPanel() Is there maybe a method I'm missing? ...

Users having problems clicking submit button.

I have a few users testing a site of mine which has 2 text fields and an image for a submit button. I can't replicate the problem on my side, nor can I seem to find anyone else that is having it either. The problem is that the submit button doesn't do anything when they click it. When I click, and the fields are empty or invalid, I get a...

Input Image Coodinates Not Working In Chrome

Problem: I have a page that has a large form, and in the middle of it I have an image as an input. From that image I get the x and y coordinates for where the user clicked, do some calculation, and redirect to a different page. However when I use Google Chrome on this page I find that the x and y coordinates are not posted, and so this...

mouseover and addClass jQuery example

Hi there, here's a gimme for anyone that knows jQuery: I have a navigation <ul class="nav"> I want to change around. I'm basically looking for the a:hover effect, just faded in (I'm using sprites, and going from one sprite area to the next). The code I have in my header looks like this: $(document).ready(function(){ $(".nav li").mou...

Storing Hidden Values in HTML (for tooltip, error, defaults) Best Practices

I just saw this JQuery Metadata Plugin by John Resig, Yehuda Katz, Jarn Zaefferer, and Paul McLanahan, in my search for JQuery Form Validation, and that's an interesting idea! I'm wondering what general best practices are for storing things like error/validation text, tooltip text, default value text, etc. I know you can place them int...

Why a asp:DropDownList and a asp:TextBox of the same width appear differently

I am using the below code inside of a table: <tr> <td>User Language:</td> <td> <asp:DropDownList ID="Language" runat="server" Width="200px"> <asp:ListItem Selected="True">English</asp:ListItem> </asp:DropDownList> </td> </tr> <tr> <td><span class="important">*</span>Company:</td> <td><asp:...

Including JavaScript validation in a form submit in PHP

Is it possible to to submit an HTML Form (with a PHP action) and include a javascript onsubmit="VerifyFields()? I am trying to do it now, but it seems that it will do the PHP action and not do the onsubmit. Update: Thanks for all of your help. The problem was that I was putting my VerifyMe() function in the <head></head>, as opposed...

play flv in html

Can anyone give a concise instruction on how I can have a flv play from my html page please? ...

access iframe name from inside iframe

I though this would be simple enough but I can't find the answer. I need to know how I can access an iframes name from withing said iframe. I was trying something like this but it's not working. <iframe name="thename"> <script type="text/javascript"> alert(parent.name); </script> </iframe> ...