I have a div block
<div id='block'>
<a href="#" onclick="Document.getElementById('block').style = 'display: none;';">Hide</a>
</div>
and I want to be have a link that will hide the block when clicked, I tried the above but it doesn't work I'm not sure how to get this to work, any ideas or guidance?
...
I'm working on a project that needs a WYSIWYG editor, but I haven't had to integrate one in a while, so I'm not familiar with the latest and greatest ones. I've used both tinyMCE and nicEdit in the past and I'd prefer not to use tinyMCE for this project because of its large overhead.
I don't need it to be overly complex, but I need the ...
Hi all,
how can I split a number into sub digits. I have a number 20:55 n need to split in to two parts as 20 and 55.
var mynumber = 20:55;
var split = mynumber.toString();
document.write("Hour : " + split[0]);
document.write("Minutes : " + split[1]);
but am getting wrong value after toString() function call.
EDIT: 1 This is wh...
Im curious what your preferences and thoughts are on the idea of doing as little testing as possible behind the scenes and rolling our as many new features as possible, as quickly as possible, and testing on the production site, or troubleshooting them to hell until they're bulletproof, and then releasing them to the public.
...
Hi all, I'm familiar with generating office documents server-side by including the following at the top of the response:
<%
Response.Buffer = True
Response.ContentType = "application/msword"
Response.AddHeader "content-disposition", "inline; filename = ASP_Word_Doc.doc"
%>
I'm currently facing the challenge of doing this purely client...
We currently have a problem whereby on our stage servers, links that exist on certain pages have a full url instead of a relative path, for example they may be on http://stage.host.com/app/webpage1.aspx, and a link may exist to http://www.host.com/app/webpage2.aspx instead of http://stage.host.com/app/webpage2.aspx
To try and solve this...
Hi, i'm beginning with web forms in asp.net and i just want a simple example of how can i show a error message on my aspx page. The intention, is to make run as follows:
The user fill 2 fields
User submit the form
The 2 fields are compared on the server
If the two aren't equals, show the same page with the classical red text on the sid...
Hey, I've been battling with PHP all morning and it's now really starting to bug me!
I've had a hard time getting HTTP_Request to work at all, but now it seems happy with everything but setPostFields() which it claims to be undefined...
Here's my code - I'm a new PHP coder, so be gentle on my (non-existant/terrible) coding style.
requ...
okay so i have a log in button on the top of my site that when clicked calles some jquery to show/hide a log in box.
yet i have a search box next to it and when you click on that not only are not able to type in it but it also toggles the log in box the first code should be the jquery and the secong is the html part that calls it. btw i...
I have been planning to try to build a shopping store with Drupal 7 just for fun and have been studying it for a few days now. But with its current status(alpha5), I doubt if my time and effort would be worthwhile. If I use 6, I am afraid I can't apply my experience with it to 7 because, you know, the latter is way way better and differe...
What is backend and frontend programming?
...
Hi,
I'm evaluating SiteMesh for use in our web applications. I've found two websites for SiteMesh
version 2.4 (Jan 2009) -> http://www.opensymphony.com/sitemesh/
version 3.0 (Sep 2009) -> http://www.sitemesh.org/
Looks like the same author is involved in both (Joe Walnes).
So my question is - is SiteMesh still in active development?...
For example
I have a site www.site1.com and i'm using a iframe on a page of site1.com and source url of iframe is a page of www.site2.com.
page of site.com which is iframed on site1.com has some links which opens images in popup like lightbox.
on site1.com iframe has fixed width and height and i cannot extend further.
But the proble...
This question is for ASP.NET and SQL Server developers. What are your best practices with respect to setting up your development and test environment? I'm interesting in the following issues:
How many tiers do you recommend and what goes on on each tier? Just dev, test, and production or perhaps dev, test, staging, and production?
W...
I'm working on a Java site (jQuery, Wicket, Maven, Spring, Hibernate) and we have just started using a CDN to serve static files on our production server. We use a placeholder for the CDN domain, and have added it to every static file that references a static file. The placeholder gets replaced by Maven through properties filters with Ma...
I am building a website, within a large intranet, that wraps and adds functionality to another site within the same intranet. I do not have access to the other site's source and they do not provide any api's for the functionality they provide. I need to, somehow, have my server-side code go to that site, fill in some forms, then press a ...
Hi...I would like the content in my website to change depending from where the request is coming(location). Would it be a nice idea to do it based on the IP Address? Is there any other way to do it?
Thanks :)
...
I want a use a Dual Slider (Range) HTML control, similar to the JQuery dual Slider, without having to load a huge JavaScript framework just to use it.
Does such a dual slider control exist, that is light weight (filesize) and doesn't require me loading any JavaScript frameworks?
...
From within PHP, how can I call an external JSON web service and then decode the returned string?
For example (pseudo-code):
<?php
$var jsonStr = json_decode("http://maps.google.com/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA&sensor=false");
?>
...
I have a website that has multiple languages. The way this is set up now is that it looks at the http accept language and redirect the user to the specific language, or uses a default language when none is found.
The problem that I am facing is that web crawlers can't index the root page, because it gives a 302 redirect. http://www.mydo...