|
This is incorrect usage, you can only have one href attribute in an anchor; see here[^].
|
|
|
|
|
Don't do that.
The HTML standard clearly say that for each property there must be ONE value.
Doing that differently will you run in the so called "undefined behavior".
Undefined behavior is not "random behavior", simply what you get is anymore granted by whatever specification, hence every different program may respond differently now or in the future.
Testing yourself (and asking to repeat the test) doesn't provide any demonstration: the fact that you find even 100% consistence proves nothing;
tomorrow morning whatever developer can create a new browser (or a new version of an existing one) dong it differently.
2 bugs found.
> recompile ...
65534 bugs found.
|
|
|
|
|
I am exporting data from MySQL to excel using php.
One field is having embeding code for video(with HTML tags)
for eg. embedding code of youtube.com
all fields data is exporting to excel perfectly but this video field is coming blank.
for eg. try to export embed code of this page from mysql to excel
[]
blank is coming in excel
When I am importing from excel to mysql its working fine.
Plzzz Help.
Thanks in Advance
|
|
|
|
|
Without seeing your code, it's a bit hard to tell.
Have you tried to read the field and output it to the browser, to ensure that it is being read correctly?
Also, will your method of output to excel handle the intended data? Can you manually put data into this field(or should I say- the representation of it in your php code) and have it transfered to excel?
|
|
|
|
|
Hi,
I'm looking for a product or technical solution that enables my customer to dynamically create advanved forms and display them on the web. Besides that it should be able to store alle the data in a database facilitating future datamining and repopulation of forms when the user returns. By advanced forms it should besides all basic controls be able to handle multipage forms and conditionale elements.
The enviroments consists of a CMS that is contentfueled by a sharepoint server. It's not a must that the forms a born in the sharepoint, but just a possibility.
I've primarily been looking at Microsofts Infopath, but I'm in doubt whether it really can get the job done.
Any of you have any input on infopath, a product or a technical solution that can solve this, in my opionion, very common need?
Regards,
Morten
|
|
|
|
|
Hi,
I use both sync and async modes.
Before starting any ajax request i display a processing(rotating) gif icon to show that the request is in progress.
when i get the response i will hide the animating gif to show that the process has completed.
this works fine with async and sync mode of ajax in FF but not in IE.
If i use sync mode. that is AJAX.open('GET','path.php',false); in IE the gif file is not visible
because IE is not displaying it. Basically this is also correct because that is the way sync is meant to.
If it is sync mode then no other process will take place until the browser gets the response.
Were as in async mode the request is threaded so other processes are not affected.
But FF displays the animated gif for both the modes of ajax. and IE displays the animated gif only for async request.
If anybody know the reason behind then please post your replies. 'cause i have simplified most of my projects by using sync mode of ajax.
But in IE the progress (processing) animation is not visible so the user will not know what is happening till the browser gets the response.
So, i hope that i have to stick with async mode. in sync mode you can write code in a few lines and it is very easy to have various type of functions which could return bool, array, object etc... since you get the result in the LHS... but that is not the case in async mode... we need to do a lot of gimmick to have a prototype of ajax...
also if i could have references to sites which explains ajax in complete detail then i will update my idea of ajax.
Today's Beautiful Moments are
Tomorrow's Beautiful Memories
|
|
|
|
|
Hi, the following Firefox bookmarklet script was supposed to list URLs across all of the frames in the currently loaded web page, but produces nothing more than the heading and the Firefox STOP button has to be clicked to stop it running. (Needless to say, as a bookmarlket it's all on one line in a button in the bookmarks toolbar). Any suggestions on what's going wrong ?
Cheers
javascript:(<br />
function(){<br />
function htmlEscape(s){<br />
s=s.replace(/&/g,'&');<br />
s=s.replace(/>/g,'>');<br />
s=s.replace(/</g,'<');<br />
return s;<br />
}<br />
function attrQuoteEscape(s){<br />
s=s.replace(/&/g,'&');<br />
s=s.replace(/"/g, '"');<br />
return s;<br />
}<br />
function ListLinksInDoc(doc){<br />
var z,i;<br />
nD.writeln('<br><h3>Start of document</h3></br>');<br />
z = doc.links;<br />
for (i = 0; i < z.length; ++i) {<br />
nD.write(i);<br />
nD.write('. <a href="');<br />
nD.write(attrQuoteEscape(z[i].href));<br />
nD.write('">Inner HTML=');<br />
nD.write(z[i].innerHTML);<br />
nD.write(' href=');<br />
nD.write(htmlEscape(z[i].href));<br />
nD.writeln('</a><br>');<br />
}<br />
nD.writeln('<br>End of document</br>');<br />
}<br />
function recurseFrames(doc, callback) {<br />
if (typeof callback != 'function') return;<br />
callback(doc);<br />
var frames = doc.getElementsByTagName("frame");<br />
for (var i = 0; i < frames.length; i++) {<br />
var d = frames[i].contentDocument;<br />
recurseFrames(d, callback);<br />
}<br />
}<br />
var nD = window.open().document;<br />
nD.writeln('<html><head><title>List of Links in Frames</title><base target="_blank"></head><body>');<br />
nD.write('List of Links in Frames in <a href="'+attrQuoteEscape(location.href)+'">')<br />
nD.write(htmlEscape(location.href))<br />
nD.writeln('</a><br><br><hr><br>');<br />
recurseFrames(top,ListLinksInDoc);<br />
nD.writeln('<br><hr></body></html>');<br />
nD.close();<br />
}<br />
)();
|
|
|
|
|
Hello All,
I need to be able to set an href property of an anchor tag to a javascript i.e. <code> <a id="blah" href='this is where i've been told to have Javascript'"</code> This javascript is suppose to mimick a mouse click event. Can someone show me an example of how to go about doing that. I have barely used Javascript and not too familiar with it. Any help would be higly appreciated. Thanks
~tina
|
|
|
|
|
You could use something along the lines of:
<a href="javascript:ClickMe();">Click Me</a>
<script>
funtion ClickMe() {
alert('I got clicked!');
}
</script>
|
|
|
|
|
Hi
I want to minimize the traffic as much as possible.
Since most of the traffic is in plain text, I think compressing the traffic will help.
This is the idea I came up with:
1. WebBrowser creates a request to the web server, The request will be send through the Proxy Program on the computer.
2. Proxy program on the computer compresses all the requests to be made to the web server, and sends it to "MyProxy.php" on my server.
3. "MyProxy.php" decompresses the request and sends it to the web server. "MyProxy.php" recieves the response from the web server, compresses it, and returns it to the Proxy Program on the computer.
4. The Proxy Program decompresses the response and returns it to the WebBrowser.
5. The WebBrowser shows the response to the user.
Please see the figure[^] for more info.
Do you think that's a good idea?
Would it minimize the traffic by any percent?
|
|
|
|
|
I presume you mean minimize the amount of bandwidth you are using.
There are several things you can do:
- Implement Caching. Give cached content as long a life as possible.
- Implement Compression
- Minify JavaScripts
- If there are any images, optimise them.
- Move as much content as possible onto alternate content hosts.
- Use a tool such as the PageSpeed or ySlow plugins in FireFox to identify other bandwidth hogging areas.
... If you actually did mean "minimize the traffic", then just turn off the web server.
|
|
|
|
|
Marc Firth, Thank you for your reply.
Yes, I meant minimizing the amount of bandwidth.
I guess I know those things. You're looking at the problem from the server's point of view. Look at it from client's point of view. I want to minimize the amount of traffic for my computer(not for server) as Internet Providers in my country charge a lot for bandwidth tariffs.
Please review my idea once more. Would that be any help in my case?
Thanks again.
|
|
|
|
|
Same thing then really. It doesn't really matter which way the traffic is going - minimizing bandwidth means sending less content.
|
|
|
|
|
(in visual studio 2008, website project)
I cant create instance of a partial class in a another partial class, why ????
Please look at below;
test.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="test.aspx.vb" Inherits="test" %>
test.aspx.vb
Partial Class test
Inherits System.Web.UI.Page
End Class
profile.aspx
<%@ Page Language="VB" AutoEventWireup="false" CodeFile="profile.aspx.vb" Inherits="profile" %>
profile.aspx.vb
Partial Class profile
Inherits System.Web.UI.Page
' doesnt work
Dim _test as new test
End Class
i couldnt understand what is the problem ?? thanks...
thanks for everything i have...
|
|
|
|
|
Your question is a bit vague. Nothing happens? A (compile-time||run-time) error is thrown?
What were your expectations from :
TALHAKOSEN wrote: Dim _test as new test
I'm really curious.
|
|
|
|
|
i mean when i wrote
Dim _test as new ...
i cant reach my test class.
thanks for everything i have...
|
|
|
|
|
That's not an answer
Is this a website/web application??
FYI Partial classes are just a VS construct, a class is class.
|
|
|
|
|
yes, it is website application, i create it with this way in vs2008
file --> new web site
thanks for everything i have...
|
|
|
|
|
Please reread my first answer and reply to my question : What did you expect to happen? What were your intentions?
|
|
|
|
|
Estys, Thanks for your attention and sorry for my poor english ,
i couldnt explain what i wanna say excatly. Ok, i try to explain it clearly at this time,
I gave a simple sample to tell my problem before, but now i wanna give you my real project's page example.
so
I want to take a values of a textbox.text or name of a button which are in another page.
TariheGore.aspx
Imports System
Imports System.Globalization
Imports System.Threading
Imports System.Data.SqlClient
Imports System.Data
Imports System.Drawing
Imports System.Drawing.Color
Imports System.Drawing.Font
Partial Class TariheGore
Inherits System.Web.UI.Page
Public fp1 As TariheGoreDuzelt ' there are problem it says "type TariheGoreDuzelt is not defined"
Public fp2 As TariheGoreGiris ' there are problem it says "type TariheGoreGiris is not defined"
Protected WithEvents Form2 As System.Web.UI.HtmlControls.HtmlForm
Public ReadOnly Property GetBtnName() As String ' i will use this in TariheGoreGiris.aspx
Get
Return ButtonName
End Get
End Property
TariheGoreGiris.aspx
Imports System.Data.SqlClient
Imports System.Data
Imports System
Imports System.Globalization
Imports System.Threading
Partial Class TariheGoreGiris
Inherits System.Web.UI.Page
Public fpTariheGore As TariheGore
Protected WithEvents Form1 As System.Web.UI.HtmlControls.HtmlForm
Protected WithEvents CikBtn As System.Web.UI.HtmlControls.HtmlButton
Dim utl As New Utils
.
.
.
Private Sub Page_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Thread.CurrentThread.CurrentCulture = New CultureInfo("tr-TR")
if Not IsPostBack Then
Try
fpTariheGore = CType(Context.Handler, TariheGore)
BtnName = fpTariheGore.GetBtnName
i hope i could explain my problem
thanks for everything i have...
|
|
|
|
|
You are treating your website like a windows form app. Can't be done.
I think you should read up on ASP.NET.
Have you seen this : Creating ASP.NET Web Sites
In your case the lifecycle of the Page-object is something you must know by heart.
|
|
|
|
|
Thanks fot giving your time,Estys...
thanks for everything i have...
|
|
|
|
|
I was a bit hasty in saying it can't be done, always using sessionstate and querystrings.
I found this
Don't know exactly how Context behaves, but you need to do a Server.Transfer to make it function
Merry Christmas an a Happy New Year
|
|
|
|
|
Yeah i solved my problem with usin session, you are right ))
Merry Christmas an a Happy New Year to you , too
thanks for everything i have...
|
|
|
|
|
I will just ask if editable attributes for dynamic web templates is available
in expression web like the one you see in Dreamweaver. Thanks.
|
|
|
|