This is probably a really simple one but I couldn't find the answer.
I have the following JavaScript/jQuery code where I am trying to create loading messages:
// preload an image to use for dynamic loading icon whenever requested
$(document).ready(function() {
var loadingIcon = document.createElement('img');
loadingIcon.src = '...
Hi. I have a simple question. I need to append 1,2,3 etc to a variable name in smarty. The variables are $user1, $user2, $user3 etc. I use smarty to do a simple loop like this:
{section name=user_info start=1 loop=$users}
<tr>
<td> User{$smarty.section.user_info.index} </td> // prints user1, user2, user3 etc
...
Let's say we have this unidentified DIV
<div class="class-occurs-many-times-on-page">foo</div>
and we want to place right after it another unidentified DIV that contains dozens or hundreds of SPAN elements:
<div class="a-class-that-occurs-many-times-on-page">foo</div>
<div class="another-class-that-occurs-many-times-on-page">
...
In SQL Server 2005, Import Data (SSIS), my desire is to import a text file and have it append to an existing table. The first time through the wizard on the Column Mappings step I swear the Append rows to the destination table radio button was enabled. But, now, it's disabled (grey) and even re-starting the wizard won't cause it to re...
Hi,
I have a unordered list being shown - each li tag contains an image with an empty span tag under it. I want the title attribute of the image to display in the span tag. I am using this below and it works, but it shows the titles from ALL images in the first span tag... I need to somehow make sure the title from the image goes in it...
hey guys, when i run:
with open('file00.txt') as f00:
for line in f00:
farr=array.append(float(line))
print "farr= ",farr
i get:
farr=array.append(float(line))
AttributeError: 'module' object has no attribute 'append'
does anyone know why I get this? do I have to import something? am I doing it compl...
I need to write a program or script which a client can run to do the following. I have an application which runs offline on multiple computers which is exactly the same but the data will differ. Let's call this SourceDB. Therefore, there is SourceDB1, SourceDB2, and SourceDB3.
Then there is a server which hosts the main application whic...
I want a query to insert records from one table to another table in different database if the destination table already exists, it should append the records at the end of the table. Please help me. Thanks in advance.
...
Hey folks,
I have got the following issue, my function appends code to a string $string ($string .= bla), but in the beginning the string is empty, so I get this error message
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: $string
Filename: libraries/file.php
Line Number: 90
Of course if I define...
I am redirecting my user to my default.aspx when his session expires and default page is referenced under a master page. I show a notification like twitter stating Session Expired what happens is it works fine in firefox and google chrome but not in IE. I get Internet Explorer cannot open site-http://localhost:1335/order/Default.aspx?Sid...
Is it possible to append something to a div that was already appended? I tried but nothing happens.. (I'm not using linebreaks in the actual js)
$(document).ready(function() {
$('.add_text_input').click(function() {
$('li').append('<div class="input_label">Untitled</div>\
<div class="edit_label"></di...
Hi folks. I'm using Fancybox (http://fancybox.net) to pop open an iFrame. In order to do so, I create a link with a class set to "item_pop" as so:
<div id="events">
<a href="http://www.example.com" class="item_pop">My Link</a>
</div>
I then have some JavaScript in the footer that supports this:
jQuery(".item_pop").fancybox({
...
I want to append the values of some XML tags, and then append again the result. But I'm having some trouble appending the results, so I only have one final result of appending.
Imagine you have this:
<nodeA>
<nodeB>
<item>1</item>
<item>2</item>
<yesno>blah</yesno>
</nodeB>
<nodeC>
<thing>A</thing>
</nodeC>
</nodeA>
<nodeA>
<nodeB...
Hello
i'm having problem writing data (html, contains tables) returned from an ajax request to a div.
The code works on Chrome, firefox..except IE (tested on IE 8)
I use the following code:
function ajax_test(option) {
$('.loading').fadeIn();
$('.roto_messages').empty();
$.get("options.php?i="+option, function(data) {
...
Hi,
I have the following code
<div id="element1" style="display:none"></div>
<ul>
<li id="item1">Item 1</li>
<li id="item2">Item 1</li>
</ul>
On click I want to move element1 after item1
<ul>
<li id="item1">Item 1</li>
<div id="element1" style="display:none"></div>
<li id="item2">Item 1</li>
</ul>
If I use
...
Hello,
I'm trying to realize a file. Each event just appends one line to the file. So far this is a no brainer. The hard part is that several users are supposed to be able to add entries to that file but no one is supposed to be able to modify or delete existing ones. Can I somehow enforce this using file access rights? I'm using Linux....
I have const char* FilePathName which looks like this: C:\ImportantFile.hex
And an int id = 12345;
I need to define a new const char* FilePathName_ID that would append the id with an underscore to the original FilePathName to look like this: C:\ImportantFile_12345.hex
I have looked at this but its different as I am using const char* wh...
first sorry bad english
i retrieve from a db some values and save them in a file.
i have a list with an id in every li element.
When i click an element i want to append the line from the file which is equal with the id i just clicked
example i have :
<li id="test1">just test </li>
there is a test1 value in a line at the file...i...
Hello all,
I'm trying to find a simple way to append/write to a log, while at the same time keeping it the log trimmed to a reasonable size. I would prefer to not just append files forever, and then have to have a clean up log script. I can't wrap my head around how I would accomplish this gracefully without using some second file as a ...
I have an autocomplete input field, and right now, in order to store multiple values, you need to separate each one with a comma. I'm trying to add an "Add" button so that after each selected value, the user clicks on it and that value is removed from the input box and stored in another input field.
So, for example, here are some poten...