html

Passing a sequence of the same form? - Django

Hi folks, the user needs to provide a list of field/values through a form class FieldForm(forms.Form): field_name = forms.CharField() field_value = forms.CharField() The problem is how do I get a user to pass multiple of these with one submit? Also as a side question... any tips on implementing editing too? Any ideas? ...

JQuery - Best way of wiring GUI objects to events?

Ever since JQuery came along a few years ago I've been using it in all my client-side scripts. Initially I used the '$() syntax to grab and manipulate objects this, to me, is the 'old skool' paradigm of explicitly wiring up button events to functions: <button onClick='myFunction(this);' ... /> with a related function: function myFun...

CSS simple menu - how to align?

Hello, Got a newbie CSS question, just beginning to get into CSS so please bear with me. In my ASP.NET MVC app there's a menu: <div id="menucontainer"> <ul id="menu"> <li>something</li> <li>something</li> <li>something</li> <li>something</li> <li...

Webkit opacity rendering

The text on the top has the opacity of 0.5. The other image has a color of #dddddd (hex). This is the code I am using: <p style="font:60px Arial;font-weight:bold;opacity:0.5">Hello!</p> <p style="font:60px Arial;font-weight:bold;color:#888">Hello!</p> The text on the top has jagged edges. I'm wondering why that is. ...

I want to disable hyper link after clicking on it

I have a link <asp:HyperLink ID="BtnPrint" runat="server" NavigateUrl="~/CrystalReportViewer.aspx" Visible="false" Target="_blank" ToolTip="Print pdf">Print</asp:HyperLink> I want that when I click to show it should be visible.. that's working... but I want that when I click to this hyper link it ...

why is div inheriting the property of sub div?

hi there, in the header section of my web page, the design is something like the logo and navigation div should overlap a repeat-x image(i.e bg-header). this is the html i have used <div id="header"> <div id="header-bar"> <p>kljslakdjlaskjdkljasdlkjasdlkjaskldjasjd</p> </div> </div> and this is the css #header { ...

Div positioning problem in IE

down vote favorite The HTML: <div id="broadcast"> <div id="broadcast_header"> Neighbourhood Broadcast </div> </div> The CSS: #broadcast_header { background-color: #A0522D; width: 100%; height: 20px; position: relative; top: -20px; font-weight: bold; } Firefox: All fine, header appears 20px above the div, its...

How to get HTML tables using xpath in c?

I'm using libxml2 in my c project. I was wondering how could I grab all tables in a html file using xpath. Sample code will do the trick. I need to parse the data in html table. Thanks EDIT: This is a row of the table: <tr class="report-data-row-even"> <td class="NormalTxt report-data-cell report-data-column-even"><nobr>0.0285</nob...

How to fix <div>width with firefox ?

hi in the below div width is 675. width:675px is working currect in inetrnet explore 8&9 buy in firefox and google chrmo display width 2px extra.. why like this. How to fix 675 in firefox and google chrmo ? <div style="width: 675px; height: 50px;border: 1px solid red" > </div> ...

Open a default mail client from a html page which has to pass data to "TO" field with more than 4000 characters

I can either use java or html to do this. I have tried using window.open(), but there is a cap on the length of string passed. I have tried using runtime.exec(), but with no luck. Can anyone suggest any other method for achieving this. I am not supposed to use java swing to achieve this. The java runtime I use is java 1.5.Please help me ...

What is web 2.0 with respect to development and designing

What is web 2.0 with respect to development and designing ...

TD elements word wrapping on shrinking browser window

I have a table who's columns contain two inline divs, one displaying an image, and the other display text, side by side. So each td is rectangular with an image on the right and text beside it on the left (on a single line). The problem (which happens in all browsers) is when I shrink the horizontal browser size, rather than keeping th...

delete table row javascript

Hi, everyone, I have created new rows, but I cant delete it. When I click on the remove button, nothing happends. What am I doing wrong? Im greatfull for any advice. <table> <tr> somethingElse </tr> <tr> <td colspan="5"> <script type="text/javascript"> var inputCount = 0; function addRow(id) { ...

Submit a form with 2 submit buttons

Hello, a website has 2 textareas and 2 submit-type buttons. Both textareas are simple text <input type=text name=to class="text" value="" maxlength=20>. One button is send button <input type=submit name=s value="Send"> another is erase <input type=submit name=reset value="Erase" onclick="eras=1;"> . Is it somehow possible to replace th...

How to convert this SVG file to an HTML map?

I want to convert this svg map to an HTML map (area coords). I have tried to do it by hand, but the coordinates don't match. I want every zone to be selectable (not just the one highlighted). I can't find a way to do it... ...

jQuery Dropdownchecklist tooltip

Hi, I am using the jQuery Drop Down Check List component: http://github.com/scottwb/jquery.ui.dropdownchecklist However, it doesn't seem that there is support to add a tooltip to such a drop down. Usually, you just add the 'title' tag for every option and a tooltip is automatically shown. However, this is not the case with this compon...

Resolving relative URLs in JavaScript

I'm building a JS library which has a requirement of looking at form[action] and a[href] values and resolving them into absolute URLs. For example, I'm on http://a/b/c/d;p?q and encounter an href value of "../g" (assume there's no <base> element). The resulting absolute would be: http://a/b/g. Is there a JS library that does this alre...

How do i open and create a file like this ?

Well,my current situation is like this. When i search something on my site for ex. http://example.org/web-search.phtml?search=SEARCHED+TEXT the respective content is shown. As you can see I'm using a GET form to get the data from the previous form.So the first thing i want to do is open a file with the same as SEARCHED+TEXT.So now i wa...

Can setTimeout ever return 0 as the id?

I am writing a check to see if a timeout is active. I was thinking of doing this: var a = setTimeout(fn, 10); // ... Other code ... where clearTimeout(a) can be called and set to null if (a != null) { // do soemthing } I was wondering if it would ever be possible that a will be 0. In that case I would use a !== null ...

Find id of an LI element in a nested UL LI structure using jQuery

Hi, I have the following sample HTML code: http://pastebin.com/Mya6tPc6 And here is the jQuery code I am trying to use: $("#folder1").click(function(){ alert($(this).attr('id')); }); $("#f1").click(function(){ alert($(this).attr('id')); }); Here is the problem: If the user clicks on the element 'folder1', it will display 'folder1'...