I am trying to create a dynamic hyperlink that depends on a value passed from a function:
{% for item in field_list %}
<a href={% url index_view %}{{ item }}/> {{ item }} </a> <br>
{% endfor %}
The problem is that one of the items in field_list is "Hockey Player". The link for some reason is dropping everything after the space, s...
Hello, I know I've solved this problem before, but I can't remember or find the solution, so here I am...
In Firefox 3.5 this code causes an undesirable blue border around the image. How do I get rid of this blue border?
<a style="text-decoration: none;" href="index.html">
<img src="http://www.google.com/logos/stpatricksday10-hp.gi...
hi,
i have a unordered list of links, which are dynamically created by Ajax, and for each link i want to add click function to it, but it won't work, please help!
here is my code:
HTML:
<div id="sidebar">
<li>
<h2> list </h2>
<ul id="list"></ul>
</li>
</div>
JS:
//to create links
var str = '';
$.each(json.opts, fu...
For graceful degrading and minimal coding for the sIFR feature on my websites I would want to define styles in CSS as much as possible. Here's what I do:
• Define a H3 tag to be replaced by sIFR3.
• H3 comes in varying colors by CSS depending on it's container, say:
body.blue-txt h3{ color: #009CDA; }
body.white-txt h3{ color: #FFFFFF...
Hello everybody. I am trying to use JavaScript to start a marquee when a user puts their name into a textbox and then clicks a button. I've got an idea as to how to do it, but my script never fully works. Any help is appreciated!
Here's what I have so far:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.or...
In general, If I have a choice when developing a web site to use html elements or asp.net controls which one is better to use if my website is interactive with server side operations such as accessing database.
Is it more secure to use asp.net controls or does not matter.
On other words, is it more secure to use asp.net controls instead...
using visual studio 2008 Asp.net HTML Designer
Howdy,
Silly question but im using the HTML desinger in vs2008 to produce a ASP.net webform page, and i cant seem to find a way to select/group multiple controls with the mouse and move them all about the page in one group to keep them all aligned.
I can select multiple controls with cntr...
With Safari you can disable most iframe scrolling by setting style="overflow: hidden;" on the iframe. However, if you click in the iframe and move the mouse the content scrolls anyhow.
Example:
<html>
<body>
<iframe style="width: 100%; height:100px; overflow: hidden;" scrolling="no" src="scrollcontent.html">
</iframe>
</bod...
I can't figure out why this page: http://wohf.squarespace.com/newsletter/ gets cut off at the bottom in safari, seems to work fine in all other browsers (as far as I found so far)!!
I am using some jquery and css for the sidebar and the content to match heights and for the canvas to run top to bottom with the footer always at the very b...
The new Google Chrome auto-translation feature is tripping up on one page within one of our applications. Whenever we navigate to this particular page, Chrome tells us the page is in Danish and offers to translate. The page is in English, just like every other page in our app. This particular page is an internal testing page that has ...
is there any standard choice of the font family and font size for a general web site .. or something of that kind which are normally used...
...
Hey there,
I've got some jquery running fairly well, howeever when I hover over the element in question, the bottom expands downward which is not unexpected but is not the desired effect. I'd like the bottom of the element to remain stationary with the top of the element expanding upwards.
If you'd like to see what I currently have, y...
I am creating a form designer. It will generate PHP code which will produce an HTML form. Users will fill in fields and the PHP will store user input in a MySql database (and, of course, they can use the designer to generate forms which query the database).
I am using Borland C++ Builder (very similar to Delphi & and you can get the sa...
hello,
i want to extract the last eight entries from my database and print them into a 2 columns table!like this:
|1|2|
|3|4|
|5|6|
|7|8|
is that possible?
this is my code:
$db = new Database(DB_SERVER, DB_USER, DB_PASS, DB_DATABASE);
$db->connect();
$sql = "SELECT ID, movieno
FROM movies
ORDER BY ID D...
I want to find the span tag beween the LI tag and its attributes. Trying with beautful soap but no luck. Details of my code. Is any one point me right methodlogy
In this this code, my getId function should return me id = "0_False-2"
Any one know right method?
from BeautifulSoup import BeautifulSoup as bs
import re
html = '<ul>\
<li...
I have a jQuery colorbox opened over top of my webpage (with a <select> drop down list) and I'd like to make an AJAX call every time a new <option> is selected from the drop down.
I have the following code, but it's not picking up the select event.
$('#cboxLoadedContent select[name=parent]').live('select', function() {
$.get("edit.ph...
Hi,
Window.open javascript function is not working in Mozilla, but working in other browsers, here is what I have write.
<a href="javascript:window.open('../Terms.aspx','Terms','width=550,height=400')">
click here</a>
Actually what happened in Mozilla is popup is opened but parent window is blank with [object Window]
...
Hello there,
I am having a problem with UIWebView. I'd like to render my own html code in it. When I add a webview as a subview and put in some html code it renders just fine. When it gets down to some optimized drawing of tableview cell with the drawRect method the problem pops up. Drawing UIView descendants works pretty well this way. ...
The HTML5 spec definition of the "section" element is:
The section element represents a generic document or application section. A section, in this context, is a thematic grouping of content, typically with a heading....Note: The section element is not a generic container element. When an element is needed for styling purposes or a...
Is there an easy way to apply CSS/icons to the modal buttons on a jQuery UI modal dialog box?
If I include the HTML to display an icon with the button text, it shows the HTML as text rather than rendering the code.
I'm guessing I could write some jQuery to find the button and overwrite the HTML with what I want, but I'm hoping there's ...