Hi All
I was wondering if there's a way to detect the response codes on a website using C#? Since C# .NET has HTTP-based methods, I'm assuming that it can be done?
Thank you
Hello.
I am supposed to add submit action to an image.So on the main page,i have done in
and in css i have written .go-button
{
margin-right:7px;
background: transparent url(../images/go.gif);
width:26px;
height:20px;
border:0px;
overflow:hidden;
}
But the problem is I am getting Submit query on the GO image.
I dont want that.
Plz help me.
On my new customer page, I have successfully implemented a jQuery show/hide toggle alongside a Prototype script using jQuery's .noconflict. (Thanks to all for answers!)
But as the world of the net is, IE's not playing ball.
{literal}
<script src="http://code.jquery.com/jquery-latest.js" type="text/javascript">
</script>
<script type="text/javascript">
var $j = jQuery.noConflict();
$j(function() {
$j("#button1").click(function() {
$j("#show-hide").toggle("slow");
});
});?
</script>
{/literal}
As you all must know by now, I'm just newly coming to all this jQuery stuff, so I have no idea what could cause it.
Thanks for any help.
I have an input field whose name is an MD5 string e.g.:
<input type="hidden" name="7815696ecbf1c96e6894b779456d330e" value="1">
Now I understand that having a number as the first letter in an input field name is generally bad practice, but are there any side-effects to this such as a certain browser won't send it in the POST request?
Do search engines treat the alt text of an image placed within an h1 tag the same way they would treat regular text placed in an h1 tag?
I gave a search through here looking for an answer to this question, but was only able to find information on image replacement and the infamous h1 debate.
For example would:
<h1><img src="#" alt="Contact Us" /></h1>
Act the same as:
<h1>Contact Us</h1>
In the electronic eye of a search engine?
This seems considerably less "CSS Hacky" than other image replacement techniques like negative text indents, display:none, height:0, or ridiculous z-index integers.
Hello,
Can anybody tell me how do i give absolute path of the img tag's src attribute?
The following doesn't work
<img alt="NO IMAGE" src="/home/administrator/tiger-info0[1].gif"/>
I am working On Ubuntu and i am very sure that image exists on this path.
here is url
http://mrhome.ru/Home/MenuPageContent/41?q=??&pid=39
if click search, it not work (quess it because of param q)
but on url http://mrhome.ru/Home/main search is work
what the problem?
Consider this CSS Property:
background: url(http://images.something.com/background.png) left top repeat-x;
Is there a way to dynamically specify the URL being used in the external file (Meaning the URL is sort of automatically generated rather than hard-coded in the CSS file) ?
Thanks.
how to delete the div using java script?
for details,
I have question div one by one, each question have up and down arrows, it have multiple div, and also have a save button, once i checked some question and press save button, the checked question are display blocked, others are none, In that time i click up and down arrows, it will moved included hided div also, so please help the same,
Thnks
Hey, I'm having trouble with a relative positioned footer. I'm using a clearfooter div to keep the footer at the bottom of each of my pages. This works fine for all resolutions except for 1440x900, any ideas why this resolution would make the header raise up 10 or so pixels off the bottom?
CODE: http://pastie.org/929802
There is something in my mind:
In a web page,there are lots of things we can see from our browser.One of them is text.
Now i have some patterns,"abc","hello",or some other strings.In the text, i want to find all the patterns and change the color or background-color of them.
Like this:
text: what a wonderful day! pattern: "a","day"
resulet: what a wonderful day!
How can solve this whit Javascript?
Hi I am using unicode character ■ to display the square.
It display properly in my IE6.0 but i had tested same thing in another PC it won't display.
Is there is any setting required to display properly.
hello,
I know it's very basic question and hope not so important, but i want to know the answer, please don't suggest only refer links.
we all daily face <input> type tag and their attributes(type, class, id, value, name, size, maxlength, tabindex etc..), i just want to know that
is there any sequence list of attributes in tag or we can use any sequence?
is there any sequence then what it is?
I've done this in the past using a method similar to this:
http://javascriptkit.com/javatutors/static3.shtml
but I don't like the "flicker" effect as the page is scrolled and the div needs to move with the scrolling. Lately I've seen a lot of site that have an element (a div or the like I presume) that don't move when the page is scrolled but it's seemless...they're just there and it's a beautiful thing.
Unfortunately I can't seem to recall where I've seen it lately to view the source and try to figure it out so I figured I'd turn here and see what all of you experts can provide as far as assistance / suggestions.
TIA
Hello Guys,
How to create .htaccess file for 301 permanent redirect. I am looking for exact code that we would put in the file.
Looking forward to hear from you all.
Thanks in advance.
I have a checkboxes on my site that when unchecked, update their row in in the db as unchecked, and if checked,update their row in the db as checked. I am creating an ifstatement that will commence with its command if checked, and not if unchecked. I have echoed the variable and it is holding the proper value (checked or unchecked) but not sure if I am syntactically correct on displaying the state of the row in the db.
This is what I am trying and will not work. I am new at php still and thank you very much for any help.
if($auth->check_prof == 'checked'){// do the stuff in here}
Hi,
I have a page on the example.com domain which contains an IFrame, this IFrame loads an ASP.NET page (c#) from the example2.com domain.
From the code behind on the example2.com domain how can I get the URL of the master page?
Would it help if the 2 pages were on the same domain, so example.com contains an iframe with sub.example.com?
Thanks
I am getting a file "abc.txt" from server and dispaying it in a text area for editing.
<div id="filecontents"> <textarea> CONTENTS OF FILE LARGER THAN 10KB
</textarea> </div>
The contents of the file are potentially large. The user will edit the textarea and add/delete text from any part(not just the end). I want to send ONLY the changes to the server for patching. How do I accomplish this?. Is there a javascript version of the popular linux command(diff). John Resig's diff code may not work as, for me, it will involve additional parsing on server side.
Thanks!
I need a way to make sure my script won't block the viewed page,
if the server serving the script is down (port 80 is blocked for some reason).
Currently when I test it and take down the server (Apache), or close the firewall,
I see in the browser that it is trying to load the resource (script in that case), without success for long seconds, until it aborts.
Is there a nice way to get past this issue?
I've just turned my website into a responsive layout and along the way I've somehow managed to make my dropdown menus not work. When hovering over 'Drop-downs' they don't display unless I'm using position: relative. They worked before using position: absolute - but it seems they only work with position relative now. When using relative it uses the width which messes up the navigation bar.
Using relative: http://d.pr/i/tp5R
Using absolute: http://d.pr/i/j7r1
CSS for my sub-menu
div.left_first_header ul.sub-menu {
width: 125px;
top: 14px;
z-index: 2;
height: 100%;
position: absolute;
-webkit-border-radius: 0px 0px 4px 4px;
-moz-border-radius: 0px 0px 4px 4px;
background: url(images/drop_down_bg.jpg);
padding-left: 15px;
padding-right: 15px;
background-repeat: repeat;
}
jQuery for the drop down functionality
jQuery(document).ready(function ($) {
jQuery("ul.dropdown li").hover(function() {
$('ul:first',this).css('visibility', 'visible');
}, function() {
jQuery(this).removeClass("hover");
jQuery('ul:first',this).css('visibility', 'hidden');
});
});
My website
http://wpvault.com/kahlam/
Considering it's 4am I've probably made a really stupid simple mistake.
I apologise if I've missed anything.
Hi
i have this method:
set_period_help_text: function(periodInput){
var metric = MonitorMetric.getSelectedMetric();
var periodStr = $('select[name=metric_period]').val();
var datapoints = Number(periodInput.attr("value"));
var period = datapoints * periodLookup[periodStr][0];
}
var periodLookup = {
"OneMinute": [1, "minute"],
"FiveMinute": [5, "minute"],
"OneHour": [1, "hour"],
"OneDay": [1, "day"],
"OneWeek": [1, "week"]
};
where var periodStr is being retrived from a dropdown menue that only has the values:
"OneMinute"
"FiveMinute"
"OneHour"
"OneDay"
"OneWeek"
i get a java script error when the page loads:
periodLookup[periodStr] is undefined
[Break on this error] var period =
datapoints *
periodLookup[periodStr][0];
I'm looking to make a Contact/Query form, wherein the end user can send an email to the webmaster. The form has a 'textarea' field, which captures long strings from the user, if I use AJAX to submit the form using GET method, my params tend to break if their is a special character, specifically '&' in the textarea's string..
I'm stuck please help!
I'm currently finishing up testing a new Ruby on Rails app. Just recently, some of the pages do not seem to finish downloading in IE8. In FireFox, Chrome and Safari, everything works perfectly. The pages all validate successfully using the W3C validator.
When I view the page source in IE8, the page has been chopped off around 75% of the size it should be. IE8 claims the page is finished loading, and doesn't give any errors, but of course the page isn't rendering properly.
Has anyone seen this before? I'd really appreciate any help.