|
You obviously didn't read the docs very well.
http://api.jquery.com/jQuery.ajax/[^]
Read the section on dataType and it will explain why your data comes back as XML. Look at the example of a success handler and you would have the code you need. Read the sentence after that example and it will point you to a better way to do it.
|
|
|
|
|
I've read the section dataType, before it post my first question. Did you have read my example code? You find the line, where I define the result datatype should be text (and not XML). And I get the same result, if I define the result datatype as HTML. This parameter did work by me and has no effect.
\\\| \\ - -
( @ @ )
+---------------oOOo-(_)-oOOo-----------------+
| Stephan Pilz stephan.pilz@stephan-pilz.de |
| <a href="http://www.stephan-pilz.de">www.stephan-pilz.de</a> |
| ICQ#: 127823481 |
+-----------------------Oooo------------------+
oooO ( )
( ) ) /
\ ( (_/
\_)
|
|
|
|
|
Then the problem is obviously in your web service. And you still didn't impement the .html call as suggested in the docs.
|
|
|
|
|
T M Gray wrote: Then the problem is obviously in your web service. And you still didn't impement the .html call as suggested in the docs.
Your are probably right, if there is a 'problem' at all.
If the service reurns 'text' formatted as xml then all
is well.
|
|
|
|
|
for example, go to this site, http://reviews.cremedelamer.com/3815/PROD2459/reviews.htm .
you will see the list of reviews and besides each review, there is a facebook link.
when you click on that, it will lead you to some specific page that you can write a review for the product and it automatically takes you to your account.
how do I do that?
|
|
|
|
|
Seems obvious, but go to that page, copy the URL and post that as the link?
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Hi Guys,
Several ports (8005, 8080, 8009) required by Tomcat v6.0 Server at localhost are already in use. The server may already be running in another process, or a system process may be using the port. To start this server you will need to stop the other process or change the port number(s).
This is error i am getting when i run tomcat6.0 server 0n Eclipse3.4.
Please anybody resolve this issue.
Thanks,
Ram's.
|
|
|
|
|
|
Hi all,
I have a custom 404 error page for my site, it is an aspx page as it uses the master template to retain site navigation etc.
I have configured the web.config file, and so all un-found pages redirect to my 404 page just fine, but for directories not found it doesn't work, which I get just fine.
What I have done then is to change the error page that IIS serves up, telling it to point to my 404 page relative to the site root.
This too works fine, but only for urls such as : www.mysite.co.uk/afakedir
but for: www.mysite.co.uk/afakedir/ it screws up my links to js files and stylesheets etc. obviously because these are set to be relative to the path, which is changed when a trailing / is added.
How do I get round this without putting in absolute links to my js and css files etc?
They need to be relative as I don't want to be making changes between my development and live site and obviously the paths would be different.
I'm sure i'm not the only person to have this problem, or have tried this, I just can't seem to find a solution that works all round.
Any help would be appreciated, even just pointing me in the right direction
--- What I forgot to mention is that I initially need this to work on iis6, but will need it to work on iis 7.5 also..
Many thanks..
Mark
modified on Tuesday, April 6, 2010 5:02 AM
|
|
|
|
|
Make all of your links relative to the root. Instead of things like ../styles/style.css use /styles/style.css.
|
|
|
|
|
Hi ya,
I have made them relative, but when the trailing / is on the end it thinks it's in a directory above where it is, and so the links fail.
I even tried making the links server-side so that I can use href="~/Styles/StyleSheet.css" but the website thinks it is at root level, because that's where the 404 page is. When I view the source code for the page, the links appear as www.mysite.co.uk/afakedir/Styles/stylesheet.css
it turns out it's not just the css and js files, but all other links have the fake directory appended to the beginning of it.
(I hope that made sense...)
It's left me very confused, I thought it was going to be very simple.
Thanks for the advice
Mark
|
|
|
|
|
Hi,
z-index does not work in IE6. How can i fix it.
Thanks
|
|
|
|
|
Upgrade to IE8?
IE6 has very poor support for z index and several other CCS tricks.
|
|
|
|
|
Thanks for your reply. I have to fix it for my project.
|
|
|
|
|
with respect to absolute positioning it has always worked well for me. i think so... it has been a long time... use jquery and its .css options to fix it.
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
It is better to have zindexes less than 100 so it works well in all browsers.
try to change all zindexes above 100 to below 100 and try.
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
OK here it goes don't laugh to hard. The project I'm assigned to is still utilizing VS2003. I recently recieve the code stream to the project. The solution will compile without error. All my refereneces are good (no broken ones). The problem is with the designer. If I choose to open a ASPX in the design I get this error "make sure all of the classes used in the page are built or referenced in the project". I will always get the error, however the page will not always open. It will open the code behind instead. Through troubleshooting I have discovered the base class the code is referencing seems to be the issue. If I remove the base class they specified and use System.Web.UI.Page I can open the ASPX page without error. Now I can cursor over the orginial base class (MyBaseClass.web.ui.page) and drill all way down to the referring binary in the object browser. So it does know that it exists.
I'm really stumped here. I'm almost certain this is a VS2003 issue. I have done alot research so far and I've read other people having this issue way back in 2005 time frame but no solution were mention.
Thanks in advance for any help.
J
|
|
|
|
|
Hello all,
I have a site in asp.net+vb.net and sqlserver.It runs very slow,mainly home page takes 3-4 minutes to load.What can be procedure to speed the site.
Thanks
|
|
|
|
|
That's like asking "I have a car that doesn't run what is the procedure to make it go?"
The answer could be as simple as put some gas in it, or it could be as complex as you need to replace the engine, and there are thousands of things in between.
What have you done so far to identify which parts are slow? Does it run as slow on the local server as it does accessing it remotely?
|
|
|
|
|
Hi,
On local machine it runs very well fast and smooth ,when i upload it on production machine then it runs very slow.
Thanks
|
|
|
|
|
Hi
you need to read Ulra Fast ASP.NET
i did - its great
3-4 minutes
start by loading the page with out a db connection , then you can see if its db or server related
MyDevBank.com
|
|
|
|
|
I have a form within an HTML page.
As you can see from the code, it is hardcoded to post to an address 'sales@anycompany.co.uk'.
I also have a drop down box selecting the type of contact, Sales, Contractor etc.
I would like to email to a different address dependant upon which contact type is selected.
ie a sales type is emailed to sales@anycompany.co.uk, a contractor type is emailed to colin@anycompany.co.uk etc
How can I achieve this selection within HTML?
(Can I do this?)
<form action="mailto:sales@anycompany.co.uk&cc=david@anycompany.co.uk"
enctype="text/plain" method="post">
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
<input name="Customer Name :" size="60"
style="background-color: #FFFFCC; text-align: left;" type="text" value="Name" /><input
name="Telephone Number :" size="60"
style="background-color: #FFFFCC; text-align: left; width: 202px; margin-left: 42px;"
type="text" value="Tel No." /></p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; height: 12px; width: 655px;">
</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
Please use our contact form to make any enquiries.</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
Type of enquiry?</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
<select id="SelectContactType" name="ContactType">
<option value="Sales">Sales Enquiry</option>
<option value="Contractor">Contractor Enquiry</option>
<option value="Technical">Technical Enquiry</option>
<option value="Other">Other</option>
</select></p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
Your Question...</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; height: 62px;">
<textarea rows="3" cols="2" id="TextArea1" name="S1"></textarea></p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; height: 9px;">
</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; height: 9px;">
</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px; height: 9px;">
</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
Finally, Your Email Address...</p>
<p style="MARGIN-TOP: 0px; MARGIN-BOTTOM: 0px">
<input name="Customer Email Address :" size="60"
style="background-color: #FFFFCC" type="text" />
<input id="Button1" type="submit" value="Submit" /></p>
<p align="center">
Press the Submit Button and we will contact you shortly with details, prices
etc.</p>
</form>
Thanks.
to see what has been uploaded so far click here[^].
Thanks in advance.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
Never tried it (never had reason to) but you may be able to handle the changed event of the dropdown and set the form's action with JavaScript
I know the language. I've read a book. - _Madmatt
|
|
|
|
|
Thanks, I was unsure if it was even possible in HTML.
I shall have a poke at that.
------------------------------------
I will never again mention that I was the poster of the One Millionth Lounge Post, nor that it was complete drivel. Dalek Dave
|
|
|
|
|
As Mark has said ...
"handle the changed event of the dropdown and set the form's action with JavaScript"
One way to accomplish that follows.
add onchange handler to drop down
<select id="SelectContactType" name="ContactType" onchange="setAction(this)">
add this script ...
<script type="text/javascript">
setAction = function(context){
frm = document.forms[0];
frm.action = "mailto:" +
context.options(context.selectedIndex).value) +
"@anycompany.co.uk&cc=david@anycompany.co.uk"}
</script>
|
|
|
|