0
votes
1answer
14 views

Appending an DOM/SVG element with the d3 javascript library changes variable reference/scope, why?

I noticed then I get mixed results when I append an DOM/SVG elements to an existing object inline and in the separate step when using the D3 javascript library. If I look at the variable referencing ...
0
votes
4answers
58 views

How to pass event as argument to an inline event handler in JavaScript?

// this e works document.getElementById("p").oncontextmenu = function(e) { e = e || window.event; var target = e.target || e.srcElement; console.log(target); }; // this e is undefined ...
-1
votes
0answers
30 views

Inline javascript gets appended to bottom of body tag

The website in question can be found here This is a joomla website and was functioning correctly when inline javascripts started behaving strangely. Checking the source code of the site, I see that ...
0
votes
0answers
30 views

How to prevent a url i open in a new tab/window from redirecting the opening page

I have a tool where i can customize the html to a very limited degree precluding me from using the parameters, essentially i only have the href parameter. So in order to open urls in new tabs i do ...
0
votes
2answers
77 views

Why inline JavaScript is not working in Internet Explorer 9?

I'm writing a PHP site and have a blog. I have a comment field (for all the blogs posts) with a textarea and a submit button in a div tag, but I can't seem to get it working in Internet Explorer. It ...
1
vote
1answer
68 views

How can I covert this inline javascript to jQuery function which is causing conflict?

I am using a jQuery language switcher and below is the working script. <script type="text/javascript"> window.lang = new jquery_lang_js(); $(document).ready(function() { ...
3
votes
1answer
106 views

Why is inline script forbidden (Content Security Policy)?

i'am wondering about the quote from the specification: (https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification.dev.html) To reap the greatest benefit, authors will need to ...
0
votes
3answers
66 views

CSS display:inline prevents element from refreshing

I have a clock in my projet inserted in a div and it's really important to me that it is rendered "inline". Indeed, the AM/PM cell is right next to it and I'd like it to move as clock gets shorter ...
0
votes
2answers
49 views

Dynamically change dates in a paragraph with Java Script (need cross browser solution)

I created a sweepstakes official rules pop-up that automatically updates the date when the month changes. It works perfectly, except in IE, ugh! So I am trying to make java script changes in a span ...
0
votes
1answer
70 views

how to get javascript variable in inline style

i want to use a javascript variable screen as style backgroundattribute in a inline style declaration. <div id ="content" style=" position: relative; top: -400px; left: 0px; width: 60px; height: ...
0
votes
2answers
136 views

Javascript : Inject inline code to a html tag

I would like to add my Google Analytics tracking event code inline to my input html tag : <input class="addtobag"> to have something <input class="addtobag" ...
0
votes
3answers
77 views

Loading jQuery / CSS inline when needed or always via external?

I like keeping myself busy building modular web-applications, but don't want to spend time where I can save some.. For example I'm building a news module that should be easily implemented over ...
0
votes
2answers
81 views

detect inline background style with jQuery

I have a <div> that on occasion has an inline background attribute applied to it. I would like to be able to check if there is an inline style attached to it, and if there is then I want to go ...
2
votes
2answers
68 views

Inline Javascript isn't executed

I want to set the current time to an Element with momentjs. <span onload="$(this).text(moment().format('MMMM Do YYYY, h:mm:ss a'));"></span> What is wrong with it? Nothing is shown.
2
votes
4answers
777 views

Is there a standard for embedding JSON in HTML?

I would like to embed JSON in HTML. The most elegant solution I have found makes use of the script-tag and the mime media type application/json. <script id="data" type="application/json"> { ...
1
vote
5answers
218 views

Remove inline css of an HTML elements

I'm using wordpress 3.5 and create menu with submenus. It's structured like this: <ul class="menu"> <li id="menu1">Menu 1</li> <li id="menu2">Menu 2</li> ...
0
votes
2answers
68 views

Inline image affecting line-height

I have a div and I am adding an image in-line, the problem is when the image is bigger than the line-height it just increases the line-height instead of having the image go over the text. Here is my ...
1
vote
0answers
123 views

cross domain tinymcePopup (Result of expression 'tinymce' [undefined] is not an object.)

I have an AIR application which has tinyMCE js into it. I have added a button on tinyMCE toolbar , upon click of which an inlinepopup window appear. this inline popup loads an url var ...
-1
votes
3answers
202 views

Need to change background-position onMouseOver

<a href="#" onMouseOver="document.getElementById('button1Inline').style.backgroundPosition='0px -90px';"> <img src="ads/button1.png" id="button1Inline" /> </a> The button1.png ...
0
votes
2answers
379 views

inline javascript function call - missing ] after element list

I have a code: var data = $('<span onclick="someFunction(' + element + ');"><a href="#">Element information</a></span>'); where element is a object. Also, I have a function ...
0
votes
1answer
49 views

Adapting @bazmegakapa's Ellipsis Script for Inline Use

SO, I'm working on adapting @bazmegakapa's script (explained here) to work using inline tags: <script type="javascript"> var p=$('#fos p'); var divh=$('#fos').height(); while ...
0
votes
2answers
336 views

Javascript - Onclick show inline - hide if clicked somewhere else

I want a text to be shown, when a button is clicked, and hidden again when you click somewhere else. I added an onclick function, that changes the display from none to inline and vice versa. What do I ...
5
votes
0answers
107 views

Do modern browsers consistently inline functions? How can inlining be predicted for performance? [closed]

My question concerns modern browser optimization through function inlining. I think I really need someone who is familiar with the V8, JavaScriptCore, and/or SpiderMonkey codebase to answer this ...
1
vote
2answers
96 views

What are all of the inline-js attributes new in HTML5?

I need a list of all of the attributes that can accept inline JS. (yes, I would count the href tag as such an attribute due to the javascript: ability). I have been googling around for this quite a ...
1
vote
4answers
190 views

how to split an html inline element if it has block element inside with javascript

first exuse me for my bad english. i'll try to explain my question well! so my problem is that i need to split span html element if it has any elements inside like that <span> bla-bla \r\n ...
0
votes
2answers
254 views

JavaScript find X,Y of inline element to set popup box next to it

I have table with few records and I need to show a popup box when the user mouses over a certain record. I have created the popup box and set the message there. The only thing that's left is to set ...
0
votes
2answers
97 views

How to get specific table id to javascript?

I have many rows of data. Each row has 3 cells - id, eesnimi, perenimi. I want to be able to inline edit all of the cells. I am using In place editor. How can I get specific cells (the cell I am ...
0
votes
1answer
59 views

How to detect an inline js function using jsoup?I basically wanted to check if the inline function is present or not.

How to detect an inline js function using jsoup? I basically wanted to check if the inline function is present or not.
0
votes
2answers
92 views

remove some part of href

I have a link like this myaccount.php?posted=true&save=true and I wanted to remove the save=true when clicking the other link, so the remainder will be myaccount.php?posted=true NOTE that ...
0
votes
3answers
130 views

javascript inline vs. traditional registration

I am a js newbie and I'm trying to grasp inline vs. traditional registration. Code block 1 (inline) works fine, but code block 2 (traditional) does not. Can anyone shed light on my error? ...

1 2 3
15 30 50 per page