I'm trying to add a search box to my page that will direct users to the search result page on a different site. I have the action and all of the other required data in hidden fields, to ensure it's posting correctly.
The problem is that they tack on extra data to the search term, making it an advanced search type of field. So instead of...
I am creating an array like this:
function imageSize($name, $nr, $category){
$path = 'ad_images/'.$category.'/'.$name.'.jpg';
$path_thumb = 'ad_images/'.$category.'/thumbs/'.$name.'.jpg';
list($width, $height) = getimagesize($path);
list($thumb_width, $thumb_height) = getimagesize($path_thumb);
$myarr = array();
...
Why does this work in design mode but not when I run it:
<tr style="background-image: url('~/images/button.gif');">
...and this works in both design and run time mode?
<tr style="background-image: url('images/button.gif');">
The images folder is one folder below the aspx page which contains this HTML.
...
Hey guys, I am using both Flowplayer and Jquery Tools Overlay. I have my overlay to display when they click a link. The overlay displays correctly and the video auto-starts as it should but when it ends, I was trying to call the overlay's close function to close it out. Here is my div for the overlay.
<script>
var pla...
I have some XML
<carouselitem name='carouselitem'><flick><pic>/images/test1.jpg</pic><headertext>sdfsdfsdf csfdfsdf</headertext><dek>sdfsfsd sdfsf dsfsfdsfds sdf sdfsfds</dek></flick></carouselitem>
Wrapped in DIV with an id of carousel. The below works fine for FF
var carouselarray = $('#carousel carouselitem');
jQuery.each(carous...
I'm looking for an easy to use wireframing tool. I've heard of gliffy, are there any others?
Specifically, I'd like something that is
Easy to use
Supports collaboration
export to html and css
lets me show the wireframes to the client. Allowing annotations would be a nice feature.
low cost, or free
...
<?php for ($i=1; $i<=(count($img_array))/4; $i++): ?>
<input type="hidden" id="img{$i}_name" value="<?php echo ${'image_src'.$i};?>" />
<?php endfor;?>
In the output, the 'id' is exactly as the code, ie: img{$i}_name, but I want the $i to be replaced offcourse, by its value...
Syntax error probably, any ideas how to write it?
PS:...
I have a few users who complain that the font size on my web application is too small to read. They aren't happy with trying to resize the font setting on the browser because when they make the font larger the dimensions and layout of the application change. Are there any existing tools that give me a good way to let the end user pick ...
How do I download an HTML file from a URL in PHP, and download all of the dependencies like CSS and Images and store these to my server as files? Am I asking for too much?
...
Difficult to explain this Question, but im currently passing variables in a php page to some html hidden inputs.
Im fetching those values from the hidden inputs with a javascript function. This function gets called like this:
<body onload="function();">
It works on my system now, but is there any chance that the value passed from ph...
Okay
I have two pages-- page1.php and page2.php .Both of these pages have select lists.I have posted the values selected by the user to script.php which has them stored in session variables.
I need to add the values (which are the ones selected by the user from the select lists in both the pages) and display this total value in page3....
Can any one help me out how to use Html.ImageGetter to dispaly images using html image src tag ? and example or good tutorial
...
I need to decide on naming conventions for a new website.
I can use mod_rewrite at will.
My favourite solution would be to work with no file extension at all.
www.exampledomain.com/language/pagename
this would lead to "pagename" being treated as a directory. I would have to take that into account when using relative links.
Are there...
In Firefox (Windows) when you view source from the browser it will not update the source on a page if certain AJAX components have changed. An example is you navigate to the page and it fully loads.
An AJAX component triggers and changes the source, but if you click view source after this event it will not register. If you download the...
Looking at a few advertising companies (DoubleClick, Atlas), I've come across the concept of iframe buster files, that are hosted on the same host as the ad publisher (one example: http://www.adopstools.com/ibusters/atlas/atlas%5Frm.htm, and there's a lot of JS code that works with that page).
I read that they're used to dynamically res...
I have a velocity/html file.
I'm trying to include/parse some simple HTML into a page.
If I just copy the text directly on the the main file, it works fine:
Miranda Kerr hasn’t been a Victoria’s
Secret Angel for ...
If I create a separate VM file, and include it like so:
#parse("topicoftheday/homepagenews.vm")
I get bad chara...
I'm adding new rows to a table dinamically, with this code:
tbody = document.getElementById('tbody');
tr = tbody.insertRow(-1);
tr.id = 'last';
th = tr.insertCell(0);
td = tr.insertCell(1);
But what I actually got are two TD cells. I want a TH, as you can see.
It says the tagName property isn't changeable.
How can I do this? Will I ...
I'm starting using XSLT and write this scipt:
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="text" encoding="utf-8" />
<xsl:template match="span[@class='thumb']" >
Link: <xsl:value-of select="$base" /><xsl:value-of select="a/@href" />
</...
Hello,
Does somebody know, how to call a lightbox from an custom link?
Example:
$('#price1 a').lightBox(); //in the header
Now I want to click a custom link somewhere on the page.
<a href="#" class="price1">Link to lightBox</a>
And images in a div (until link clicked they are not visible)
<div id="price1" style="display: none;"...
When I put this code outside of the <table>...it will work.
<script type="text/javascript">
$(function(){
$("#stars-wrapper1").stars({
oneVoteOnly: true
});
});
</script>
<form>
<div id="stars-wrapper1">
<input type="radio" name="newrate" value="1" title="Very poor" />
<input type="radio" name="newrat...