html

Open another FancyBox from callbackOnShow

I am using this http://fancybox.net/ I have 2 DIVs: 1st open and 2nd hidden In the first FancyBox, I want to run several things in callbackOnShow and then once done, it closes and opens the second hidden Fancybox. However I used $('a#div-2').trigger('click'); and it is not working. It seems that the FancyBox trigger won't allow within ...

HTML: How to get my subpages listed on a google search

When you go to Google and perform a search, it will return either one of two type of results: just the title of your webpage, or the title of your web-page plus, lists subpages it found on that web site Here is an example of option #2: http://37assets.s3.amazonaws.com/svn/grub-ellis-googlelisting.png My website on a google.com sea...

How do I submit a form to JavaScript without the submit button?

<form> <input type="text" name="sometext"> <input type="button" value="Send" onClick="sendsometext(this.form);"> </form> How would that be without using the submit button (I don't want it at all), just submitting the form by pressing the Enter key. EDITED: I don't want to submit the form at all. I just want to type some text in ...

CSS: Change Button appearance on Hover

I have a button in my web page with class "btnNewL1" . my CSS class is as below .btnNewL1 { background: url(../images/btnbgnew.png); border:1px solid #818181; padding-left:3px; padding-right:3px; font-family:Arial; font-size:12px; padding-top:1px; padding-bottom:1px; } When user place the mouse over the button,i want to chnage the ap...

Image not displaying from local html on iPhone webview

I am calling an infoPage.html as below with an image from Resources and referenced as img src="eye.png" in the html, the text displays correctly but I cannot load the image (only a ? appears), any suggestions... - (void)viewDidLoad { [super viewDidLoad]; CGRect webRect = CGRectMake(15,40,300,450); UIWebView *myWebView = [[UIWebView ...

jQuery undefined error using FancyBox

I am using this http://fancybox.net/ When I do $('a.#div1').trigger('click') to popup a fancybox, it gives me this error (using Firebug) opts.itemArray[opts.itemCurrent] is undefined if (opts.itemArray[opts.itemCurren...[opts.itemCurrent].title.length > 0) {\r\n jquery.f...-1.2.1.js (line 345) Why is that? Can you help? Thanks. ...

Float a div to center

Hai guys, I want to float a div to center is it possible. Text-align:center is not working in IE... ...

Dynamically populating HTML DropDown controls using AJAX and PHP.

To dynamically fill DropDown controls on my HTML Form, I have written code that makes AJAX call to a .php file. This .php file populates the DropDown control with a single column value. In this whole process, three files play the role. (1) A HTML file that contains the entry form, (2) A .js file containing basic AJAX code, and (3) A .p...

Element Positioning affected by Browser Screen Resolution Change

Hello, newbie developer here. There's this small problem I always encounter. Every time I try to change browser resolution (or what do you call the event when you scroll the mouse wheel while pressing ctrl), some elements (Mostly form elements) get to be shifted down or somewhere else, which does not conform with the original positionin...

Style Problem with Repeater Inside a Datalist

i've used a DataList (dlparent) control for one of my page. Inside that datalist is another Datalist (dlchild) that is being populated by itemdatabound event of the parent datalist. i've used css with dlchild. Databinding is ok and the required output shows great with mozilla and IE but not in netscape, safari and google chrome. dlchil...

vertical align image within parent

i just need a way to make an image align vertically within it's parent element (in this case, an <li>, but would be nice if solution worked for <div> as well). i have tried everything and can't get anything to work... basically, i want to align it vertically. also, i do not know the height of the parent element ahead of time. ...

Div positioning varies when runat="server"

Hai guys, Error div is placed under menu div when there is no runat="server".... But When i give Runat="server" Error div placed to the right of menu div.. any suggestion for placing error div under menu div <div id="content"> <div id="menu"> </div> <div id="ErrorDiv" runat="server"> </div> </div> css: #co...

What's the event fired when user selects some text on the page?

Either by double click or move the mouse. Anyone knows about this? ...

RegEx: Link Twitter-Name Mentions to Twitter in HTML

I want to do THIS, just a little bit more complicated: Lets say, I have an HTML input: <a href="http://www.example.com" title="Bla @test blubb">Don't break!</a> Some Twitter Users: @codinghorror, @spolsky, @jarrod_dixon and @blam4c. You can't reach me at [email protected]. Is there a good RegEx to replace the twitter username mentio...

calling a function

I made a database, I am printing my required field in a marquee. Now i want that if (change>0); print (image_21); else print (image_2); This is the code I am using: <%@page import="java.sql.*" %> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>JSP Page</title> <...

How to limit the file type in HTML upload box?

I look around on the Net but cannot find the solution. But I just found that when we upload file to Flickr, the file dialog filter the file types automatically, how to make it?? ...

Form processing problem with input type 'image'

Hello! For example i use this little code: <?php if (isset($_POST['Submit'])){ if ((@$_POST['Submit'] == 'x')) { echo "OK";exit; }else{ echo "NOT"; } } ?> <html> <body> <form action="test.php" method="post" enctype="multipart/form-data"> ...

CSS selector that applies a style to COLGROUP but only within TBODY (not THEAD)?

I would like to apply a background-color to a COLGROUP, but only within the TBODY of the table. Given a typical calendar table with a structure as the following: <table> <colgroup class="weekdays" span="5"/> <colgroup class="weekend" span="2"/> <thead> <tr> <td/><td/><td/><td/><td/> <!-- I'd like the columns of th...

Sending data to a script in a container page from a script running in an embedded page

Hi Guys, I have run into an interesting problem and am not sure if it can be resolved. I have a JS script (say script1) running in an SVG document with lots of rectangles which has collected user-entered information like which rectangle was clicked / data corresponding to the rectangle etc. This SVG document is embedded inside an HTML...

Keep a permanent connection to the server while navigating a website

Hi, We are a young start-up launching a unique chat product next week. Our chat is currently based on Jabber (using Openfire as our Jabber server) via BOSH (using Punjab), with jQuery for our client side scripts. Right now our most critical issue with the current setup is with the site navigation, when navigating between pages in our we...