help building this into a string: <div style="background-image: url('303.jpg'); background-repeat: no-repeat;">this is place holder<br />of this image</div>

I want to build this difinition into a javascriptp string for insertion like

 var str = '<div id="tempewoiew{1}" style="background-image: url("'"/BCW_Web/PhotoFeeders/GetNewImagePoolPhotoThumbNail.aspx?ImagePoolPhotoIndex={2}"'"); background-repeat: no-repeat;">this is place holder<br />of this image</div>';

 

element.innerHTML = str;

but the part url('303.jpg'); screws me up...

 

its the quotation marks or the semi colon..??? i dont know how to express the quotation marks in this statement

0
bcweed966
1/22/2009 8:17:36 PM
asp.net.client-side 24353 articles. 2 followers. Follow

2 Replies
1429 Views

Similar Articles

[PageSpeed] 4
Get it on Google Play
Get it on Apple App Store

Try it like this:

 var str = "<div id=\"tempewoiew{1}\" style=\"background-image: url('/BCW_Web/PhotoFeeders/GetNewImagePoolPhotoThumbNail.aspx?ImagePoolPhotoIndex={2}'); background-repeat: no-repeat;\">this is place holder<br />of this image</div>";

0
ochavez
1/22/2009 9:01:24 PM

Hi,

C if this helps....

var str1 = '<div id="tempewoiew{1}" style="background-image: url(\'/BCW_Web/PhotoFeeders/GetNewImagePoolPhotoThumbNail.aspx?ImagePoolPhotoIndex={2}\'); background-repeat: no-repeat;">this is place holder<br />of this image</div>';


Thanks,

Nishant Sagar
0
Sagar
1/27/2009 11:16:05 AM
Reply:

Similar Artilces:

<div style="..."> works, but <div class="sameStyle"> doesn't?
Got a bit of a bizarre scenario here. When I add the following style to a div: <asp:Content ID="Content2" ContentPlaceHolderID="contents" Runat="Server"> <div style="height: 50px; background: pink url(/img/icons/remove.png) no-repeat bottom right; border: solid 1px red;"> test<br /> <asp:ContentPlaceHolder ID="contents" runat="server"></asp:ContentPlaceHolder> </div> </asp:Content>   The page works great - the div is displaying the ...

<img src='<%=PathPrefix + "Comm/Images/sp.gif" %>' height="8" width="20">- What is PathPrefix
<img src='<%=PathPrefix + "Comm/Images/sp.gif" %>' height="8" width="20"> What is PathPrefix ?-----------------------------------------------Please click Mark as Answer if this helped. PathPrefix is a public shared variable in the code behind file of this pageDo mark as answer if it helpsBest RegardsAli Sufyan ButtSoftware EngineerElectronic Solutions Pvt. Limited...

superreview requested: [Bug 398157] "ASSERTION: didn' t subtract all that we added" with <select>, <div style="margin: 0 100%; ">
Daniel Holbert [:dholbert] <dholbert@mozilla.com> has asked for superreview: Bug 398157: "ASSERTION: didn't subtract all that we added" with <select>, <div style="margin: 0 100%;"> https://bugzilla.mozilla.org/show_bug.cgi?id=398157 Attachment 283036: fix https://bugzilla.mozilla.org/attachment.cgi?id=283036&action=edit ------- Additional Comments from Daniel Holbert [:dholbert] <dholbert@mozilla.com> Trivial fix. Issue arises when "width" is nscoord_MAX in ComputeColumnWidths. We'd been subtracting directly of...

superreview granted: [Bug 398157] "ASSERTION: didn' t subtract all that we added" with <select>, <div style="margin: 0 100%; ">
Robert O'Callahan (:roc) <roc@ocallahan.org> has granted Daniel Holbert [:dholbert] <dholbert@mozilla.com>'s request for superreview: Bug 398157: "ASSERTION: didn't subtract all that we added" with <select>, <div style="margin: 0 100%;"> https://bugzilla.mozilla.org/show_bug.cgi?id=398157 Attachment 283036: fix https://bugzilla.mozilla.org/attachment.cgi?id=283036&action=edit ...

superreview requested: [Bug 398157] "ASSERTION: didn' t subtract all that we added" with <select>, <div style="margin: 0 100%; "> #2
Daniel Holbert [:dholbert] <dholbert@mozilla.com> has asked Robert O'Callahan (:roc) <roc@ocallahan.org> for superreview: Bug 398157: "ASSERTION: didn't subtract all that we added" with <select>, <div style="margin: 0 100%;"> https://bugzilla.mozilla.org/show_bug.cgi?id=398157 Attachment 283036: fix https://bugzilla.mozilla.org/attachment.cgi?id=283036&action=edit ...

"<table></table>" and "<frameset><frame></frame></frameset>" in perl/tk
Dear my friends... Anybody would be so kind telling me what is similar in perl/tk to arrange the location of a form written in perl/tk? I want a nice look for my perl/tk application. Somewhat like this below: 1. Name : <place to type-in> 2. Address : <place to type-in> 3. Telephone : <place to type-in> I have made the main menu of my application with "Menubutton". And I want if the user click on the menu that what the user see is only the aimed application displayed on the determined area (under the main menu) but the menu has no change in po...

Why Response.Write("<script>window.open("newWind.aspx','report','');</script>") not working?
I need to open a new web browser of url=newWind.aspx and tried the code below; Response.Write("<script>window.open('newWind.aspx','report','');</script>")However nothing happens, what can I do to make it work? Try RegisterClientScriptBlock("OpenWin","<script language=javascript>window.open('newWind.aspx','report','');</script>")I think that is the name of it...Also look at RegisterStartupScriptBlock (I think)MajorCats Thanks. But, it was same difference. Is there anything that blocks the new browser from showing up in the setting of IE or system?   &nbs...

<<<help>>> how does "IStateManager" works?
I have created a simple custom control with the following classes...and i'm trying to understand once i add the item into IStateManager how can i retrieve in from .aspx.cs ? here are the simple classes: 1    public class Appointment : StateManagedItem2        {3            #region Properties4    5            public DateTime? Start6            {7     ...

superreview requested: [Bug 225840] '4 .xul files': Convert <window class="dialog"> to <dialog> ... additional cleanup : [Attachment 135958] <WalletPreview.xul> patch v4b
Serge GAUTHERIE <gautheri@noos.fr> has asked Brendan Eich <brendan@mozilla.org> for superreview: Bug 225840: '4 .xul files': Convert <window class="dialog"> to <dialog> ... additional cleanup http://bugzilla.mozilla.org/show_bug.cgi?id=225840 Attachment 135958: <WalletPreview.xul> patch v4b http://bugzilla.mozilla.org/attachment.cgi?id=135958&action=edit ...

superreview granted: [Bug 225840] '4 .xul files': Convert <window class="dialog"> to <dialog> ... additional cleanup : [Attachment 136121] <p3p.xul> patch v2
Asa Dotzler <asa@mozilla.org> has granted Serge GAUTHERIE <gautheri@noos.fr>'s request for superreview: Bug 225840: '4 .xul files': Convert <window class="dialog"> to <dialog> ... additional cleanup http://bugzilla.mozilla.org/show_bug.cgi?id=225840 Attachment 136121: <p3p.xul> patch v2 http://bugzilla.mozilla.org/attachment.cgi?id=136121&action=edit ------- Additional Comments from Asa Dotzler <asa@mozilla.org> r=ben a=asa (on behalf of drivers) for checkin to 1.6beta. ...

superreview requested: [Bug 225840] '4 .xul files': Convert <window class="dialog"> to <dialog> ... additional cleanup : [Attachment 136423] <p3pDialog.xul> patch v1
Serge GAUTHERIE <gautheri@noos.fr> has asked Brendan Eich <brendan@mozilla.org> for superreview: Bug 225840: '4 .xul files': Convert <window class="dialog"> to <dialog> ... additional cleanup http://bugzilla.mozilla.org/show_bug.cgi?id=225840 Attachment 136423: <p3pDialog.xul> patch v1 http://bugzilla.mozilla.org/attachment.cgi?id=136423&action=edit ------- Additional Comments from Serge GAUTHERIE <gautheri@noos.fr> 'approval1.6b=?': Trivial U.I. code cleanup. ...

superreview granted: [Bug 225840] '4 .xul files': Convert <window class="dialog"> to <dialog> ... additional cleanup : [Attachment 136423] <p3pDialog.xul> patch v1
Asa Dotzler <asa@mozilla.org> has granted Serge GAUTHERIE <gautheri@noos.fr>'s request for superreview: Bug 225840: '4 .xul files': Convert <window class="dialog"> to <dialog> ... additional cleanup http://bugzilla.mozilla.org/show_bug.cgi?id=225840 Attachment 136423: <p3pDialog.xul> patch v1 http://bugzilla.mozilla.org/attachment.cgi?id=136423&action=edit ------- Additional Comments from Asa Dotzler <asa@mozilla.org> r=ben a=asa (on behalf of drivers) for checkin to 1.6beta. ...

superreview requested: [Bug 225840] '4 .xul files': Convert <window class="dialog"> to <dialog> ... additional cleanup : [Attachment 136121] <p3p.xul> patch v2
Serge GAUTHERIE <gautheri@noos.fr> has asked Brendan Eich <brendan@mozilla.org> for superreview: Bug 225840: '4 .xul files': Convert <window class="dialog"> to <dialog> ... additional cleanup http://bugzilla.mozilla.org/show_bug.cgi?id=225840 Attachment 136121: <p3p.xul> patch v2 http://bugzilla.mozilla.org/attachment.cgi?id=136121&action=edit ...

superreview granted: [Bug 225840] '4 .xul files': Convert <window class="dialog"> to <dialog> ... additional cleanup : [Attachment 135958] <WalletPreview.xul> patch v4b
Asa Dotzler <asa@mozilla.org> has granted Serge GAUTHERIE <gautheri@noos.fr>'s request for superreview: Bug 225840: '4 .xul files': Convert <window class="dialog"> to <dialog> ... additional cleanup http://bugzilla.mozilla.org/show_bug.cgi?id=225840 Attachment 135958: <WalletPreview.xul> patch v4b http://bugzilla.mozilla.org/attachment.cgi?id=135958&action=edit ------- Additional Comments from Asa Dotzler <asa@mozilla.org> r=ben a=asa (on behalf of drivers) for checkin to 1.6beta. ...

Web resources about - help building this into a string: <div style="background-image: url('303.jpg'); background-repeat: no-repeat;">this is place holder<br />of this image</div> - asp.net.client-side

Resources last updated: 12/21/2015 8:05:37 PM