offset

Floating and Offset Javascript Values

Hi there, I have two items that I am floating right in my XHTML page. Unfortunately, when I try to get the offset of the right most item... it comes back as the position the element would be in if it were not floated. <div id="Left style="float:right"></div> <div id="right" style="float:right"></div> Using Jquery <sc...

jQuery Relative Offset problems

Hi, User select an image in top. This image moving to "Current element". User select another image. Previous selected image moving to "Old elements": $('#selected_element_1').css({'position': 'relative', 'top': '-129px', 'left': '40px'}) Result: <div style="background-color: rgb(204, 204, 204);"> <ul id="CurrentElement" class="ch...

Losing URI segments when paginating with CodeIgniter

I have a /payments interface where the user should be able to filter via price range, bank, and other stuff. Those filters are standard select boxes. When I submit the filter form, all the post data goes to another method called payments/search. That method performs the validation, saves the post values into a session flashdata and redir...

Is it possible to have a SeekBar's thumb image extend outside the bar?

I have set negative paddings on my custom seekbar so that the round thumb image can go outside the bar, but the thumb isn't rendered out there, is there anyway to force the thumb to be drawn outside those bounds? Sorry guys, I'm new to Android development, and have been tasked with fixing an existing application. The problem is that we ...

mysql - offset problem

Hi, I recently posted a question about getting last 3 results in table in the correct order. I now want the get all comments apart from the last 3 in the correct order. Here is my syntax; SELECT * FROM (SELECT * FROM $table ORDER BY ID DESC OFFSET 3) AS T ORDER BY TIME_STAMP The error I am receiving is: You ...

Problem with the position of the loading image.

I have a loading image in the page which is appended as child to one particular <div id="event_list">. This "event_list" <div> is a child of map <div>. At the initial position the loading image is coming correctly, but when I change the map <div>'s position as to absolute the loading image is not correctly coming. I may not be clear in e...

WPF image offset

I have image with size 800x600 and i need to show small image fragment 90x30 with offset x=12 and y 12. I create brush for that but i dont know how to make offset. var source = new ImageBrush(groundSource); source.Stretch = Stretch.None; source.AlignmentX = AlignmentX.Left; source.Alig...

How to avoid content offset to reset when a view is superposed

Hello again to all, I hope this question doesn't get answered by MR. Marcus he is a very busy man and I feel a little ashamed when has to answer because no one can. I have this pretty much standard tableview with a bigger than normal cell at the end that holds a UITextView. When I tap inside the cell the keyboard shows up and the table...

Javascript: Hide Popup With Cordinates

Hi all! My problem: For example: I have a link, when I click on it a popup div is shown, and when I click on the link again then closes the popup, that's ok, but how can I do to close the opened popup box when I click anywhere else outside of the popup. I've searched a lot and I found some solutions, but those weren't enough good to me...

SQL using count value as offset

This is a follow on from another question i made I have this query that counts all the records up to a certain point i choose whcih works fine SELECT count(*)FROM news WHERE id < 18 this query gives me a count of 7 I am now having problems with the offset which would be the result of the above query I tried using this query SELECT...

Undefined offset error, but offset is not undefined

I'm getting a Notice: Undefined offset: 0 error in my code, however I can print_r the element I am trying to get and its clearly defined. function get_members($entries_found) { $members = $entries_found[0]['member']; ... } If I print_r($members) I get the expected output, however I'm still getting the Notice. Any clues? ...

Rake db:populate - linking to *almost* random records with :offset

This is a simple issue but I have multiple cases in my populate file where I want to set order.link_id to any link where link.job_id = j.id. Order.populate 1 do |order| @links = Link.find_all_by_job_id(j.id) order.link_id = @links.find(:first, :offset => rand(@links.count)).id ... end This produces an error (2 arguments for ...

Bezier's offset clipping

Hi! I'm trying to make a plug-in for Inkscape for cnc machining. And I need to make Bezier offset function. Inkscape operates with cubic Beziers. So here's what I've done. Offset of a single segment. Join of a two offseted segments. Splitting by intersection points of the offsetted curve. And I've stopped at clipping. My pl...

Select a specific character in a string and offset it (visually) with Jquery

Hi I'm trying to use Jquery/Javascript to mimic a broken typewriter font (since I could not find one). But I want to make it random which letter gets broken. I was able to split the string of the id that I wanted and use a bit of code I found to get a random number between 0 and the total length of the string. What I'm having proble...

Python - How can I open a file and specify the offset in bytes?

I'm writing a program that will parse an Apache log file periodically to log it's visitors, bandwidth usage, etc.. The problem is, I don't want to open the log and parse data I've already parsed. For example: line1 line2 line3 If I parse that file, I'll save all the lines then save that offset. That way, when I parse it again, I get:...

Android animation tween. Rotating star.

Hello everyone, I spent so much time looking into Android animation tween that I wanted to share this knowledge (and maybe others can provide feedback and improvements). I wanted to draw an animation for Android where the following sequence of animation would happen. Star would move to the center from outside of the screen. The star...

PHP Unset + Undefined Offset

I'm having a little trouble with losing my array order after using unset(). Here's the code first: $id = $_GET['id']; for($i = 0; $i < count($my_array); $i++) { if($my_array[$i] == $id) { unset($my_array[$i]); } } Assume that $my_array has 4 items and $my_array[1] is equal to $id. After I unset that I try to run a ...

jQuery offset issue: not changing the position of a SWF

Hello, I have written code to overlay a SWF above a HTML button. I use the offset function from jQuery to get the coordinates and move the SWF. Unfortunately, it seems like the SWF do not get moved. var offset = $("#button").offset(); $("#SWF").offset(offset); $("#SWF").css({'left':offset.left, 'top': offset.top}); $("#SWF").offset({ ...

Prototype Equivalent JQuery's offset()

Hi, I would like to know if there is any prototype equivalent to the JQuery's .offset() function? Thanks for your help. ...

In Ruby, can I make a reference to an array offset?

In Ruby, can I do something C-like, like this (with my made-up operator '&'): a = [1,2,3,4] and b = &a[2], b => [3,4], and if I set b[0] = 99, a => [1,2,-9,4]? If the elements of an array are integers, does Ruby necessary store them consecutively in a contiguous part of memory? I'm guessing "no", that only addresses are stored, intege...